|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello fellow coders,
I have a table data cell with a div inside of it. The td is quite large, height-wise. And the div might not have much content. I want the div to stretch to the height of the td cell. I have been trying strange routes to try and get this to work and I cannot. Please let me know if you all have any ideas. Thanks! |
|
#2
|
||||
|
||||
|
Give your div {height: 100%;}. If that doesn't do it, make the cell background color the same as the div's and no one will be the wiser.
cheers, gary
__________________
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. |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > Classic: DIV height problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|