Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Make menu height = 100% – CSS

  • This topic is empty.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #37575
    KnightMaire
    Member

    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!

    #100979
    wolfcry911
    Participant

    you need to clarify.

    #100981
    dfogge
    Participant

    would you mind making a jsfiddle? it would be much easier to pin point the issue that way. thanks

    #100982
    theacefes
    Member

    http://jsfiddle.net/a3V56/

    I made one so we can assist faster. :)

    #100983
    dfogge
    Participant

    thanks aces ;)

    so @KnightMaire, are you saying you want the grey to extend all the way down?

    #100987
    KnightMaire
    Member

    @dfogge yes, exactly, always 100% no matter how far the main-content’s text goes down

    #100989
    wolfcry911
    Participant

    the simplest way is to make the background in #main the same as the nav

    #100993
    KnightMaire
    Member

    @woldcry911 i only changed the colors so I could easily see where the div starts/stops

    #100994
    wolfcry911
    Participant

    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.

    #101005
    mallik
    Member

    Are you looking for this

    http://jsfiddle.net/a3V56/7/

Viewing 10 posts - 1 through 10 (of 10 total)
  • The forum ‘CSS’ is closed to new topics and replies.