|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
making div(css) full page height
I have 2 div columns on a web page, they are positioned using css... the right column is taller than the left column, but the left column does not expand to the full height of the right column... I require this, because the left column has a background color that I want to go right to the bottom of the page.
I have height: 100%; in the css style for the left column, but that only makes it 1 screen high... does anyone know of a way to make it the full height of the other column, ie stretch? I have tried height: auto; but that doesnt work either. |
|
#2
|
||||
|
||||
|
Re: making div(css) full page height
Quote:
could you post the code or a link?
__________________
new jersey web design |
|
#3
|
|||
|
|||
|
Div Positioning
Here's a link showing the same problem that I too have...
URL |
|
#4
|
|||
|
|||
|
yea.. and if you had another div to the right of that which was higher, the left one wouldnt expand to the full height...
is there anyway to automatically expand a div height to the full height of the scroll bar? rather than just 100% of the screen height? |
|
#5
|
||||
|
||||
|
__________________
There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing. My html and css workshop, demos and tutorials. Ask a better question, get a better answer. |
|
#6
|
||||
|
||||
|
elesueur, there's a simple way to do this..
Code:
<div><!-- make a <div> to hold everything in.. --> <div style="width:125;height:100%;">blah blah blah</div> <div style="height:100%;">blah blah blah</div> </div> anyway, that's the way i do it.. |
|
#7
|
|||
|
|||
|
of course! how stupid of me not to think of that.. the div inside will take on the height of the outer div.
thanks for that man ![]() |
|
#8
|
||||
|
||||
|
Glad i could help.
![]() It's always the simplest solutions that are the most difficult to find. |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > making div(css) full page height |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|