- This topic is empty.
Viewing 10 posts - 1 through 10 (of 10 total)
Viewing 10 posts - 1 through 10 (of 10 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
My friend asked me to help him get a navigation menu to be dynamic in height depending on the amount of text is in the content div. I took a look at it and cannot figure out for the life of me how to get the size of the nav to stay even in height with the content div. This is for college and is due tomorrow i think, can you help?
The HTML and CSS can be found below:
CSS: http://pastebin.com/pycDW9rn
HTML: http://pastebin.com/L3dB7Wuy
Thanks!
you need to clarify.
would you mind making a jsfiddle? it would be much easier to pin point the issue that way. thanks
I made one so we can assist faster. :)
thanks aces ;)
so @KnightMaire, are you saying you want the grey to extend all the way down?
@dfogge yes, exactly, always 100% no matter how far the main-content’s text goes down
the simplest way is to make the background in #main the same as the nav
@woldcry911 i only changed the colors so I could easily see where the div starts/stops
yes, but it’s still true – a very common method is faux columns. Just apply the background (color or image) to the container (or in this case #main) to give the illusion of full height column.
Are you looking for this