Forums

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

Home Forums CSS sidebar

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #25691
    AlCapone
    Participant

    ok, so i have a div that i want to stretch the entire height of the screen, but i can’t do it, i tried height: 100% but that didnt do anything

    any ideas?
    Many Thanks
    Chris

    #61684

    Divs really aren’t intended to work like that. What are you intending to do with the 100% height div? Sometimes you can fake things using background images… depends what you are going for. Tables can be used to get a 100% height, but using tables for layout is generally frowned upon.

    #61685
    AlCapone
    Participant

    the site im working on has the same sort of style as a wordpress site, like a side bar down the side, but the sidebar has a differant background image to the main background and i wanted it to all the way down to the bottom.

    Many Thanks
    Chris

    #61868
    EamonnMac
    Member

    A div will only extend as far as it’s content needs it to – so you’ll have to fake it using a bacground image that spans the whole page, but has an area designed to look like a separate column. Try this article http://www.alistapart.com/articles/fauxcolumns/ to get the full picture (no pun intended!).

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