CSS Help, Extending background color in a tableless layout |
![]() ![]() |
CSS Help, Extending background color in a tableless layout |
Apr 21 2008, 01:26 PM
Post
#1
|
|
|
Trusted Tech Posts: 1,942 OS: Vista Ultimate SP1 x64, XP Pro SP2 |
CODE #menu { float: left; width: 20%; border-right: 2px solid #6699CC; background-color: #000066 } However, the menu only goes down about half the page. After it ends, so does the background color (and the border) and it looks pretty bad. How can I get these to extend to the bottom of the page? |
|
|
Apr 21 2008, 05:16 PM
Post
#2
|
|
![]() Trusted Techie Posts: 4,476 From: FEMA took "Tin Can" away! OS: Win XP/Vista Home Premium. Backup PC: Commodore 64 with 300 baud modem! |
Without seeing all the code, I would guess you will have to set a height for the container, not in percent, but a fixed height. Got a link to page? Or complete code if suggestion doesn't work? After all, it's a guess with only what you gave.
Might apply some of the Clearing Floats and Box Model info. Ron This post has been edited by Major Payne: Apr 21 2008, 07:09 PM |
|
|
![]() ![]() |
Similar Topics
| Topic Title | Replies / Views | Topic Information | |||||
|---|---|---|---|---|---|---|---|
![]() |
3 / 410 | 1st March 2008 - 10:05 PM Alyxandra started - last by Ax238 |
|||||
![]() |
8 / 851 | 18th November 2007 - 02:27 AM tomeross started - last by Major Payne |
|||||
![]() |
20 / 866 | 20th December 2007 - 05:19 AM Alexa started - last by Major Payne |
|||||
![]() |
5 / 487 | 3rd July 2008 - 12:55 AM aowens started - last by Major Payne |
|||||
|
Time is now: 2nd December 2008 - 02:44 AM |
| Advertisements do not imply our endorsement of that product or service. The forum is run by volunteers who donate their time and expertise. We make every attempt to ensure that the help and advice posted is accurate and will not cause harm to your computer. However, we do not guarantee that they are accurate and they are to be used at your own risk. |