Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Problem with DIV's
- Chris Leonard
September 21, 2003, 4:08 pm
rate this thread
I have a very simple page with just 2 DIVs on, a left hand menu bar and a
The menu bar has a different background colour to the main screen.
Everything works fine until I add a lot of content to the main screen and
the page height is greater then a screen. As soon as I scroll down my left
hand DIV's background colour disappears!
What am I doing wrong please ?
font-family: 'Trebuchet MS', 'Lucida Grande',
Verdana, Lucida, Geneva, Helvetica,
Re: Problem with DIV's
there's the culprit - height:100% means "same height as the holding
block" - in this case, it means <body>. get rid of the height.
If you need the columns to be the same height, then use one of the
solutions at http://glish.com/css
oh - and lowercase code is easier to read.
- » Re: How do I force Windoex XP to open HTML files with IExplorer not Netscape?
- — Next thread in » HTML Markup Language