![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||||
| |||||
|
|
The table example is this: 2 2b 1 4 5 7 8 |
|
I've got the problem described in the table above. |
|
I've put a div red with some text inside a TD, but its height is less than 100% of TD height as you can see. |
|
I've defined the following styles: div.test { background-color:red; height:100%; width: 100%; } table.test { border: 1px solid #CCCCCC; background-color:yellow; } td.test { border: 1px solid #CCCCCC; } |
|
does anyone know a solution ? Please help me. Regards to all 2 2b 1 4 5 7 8 |
#4
| |||
| |||
|
|
The table example is this: |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
sorry this is the table: 2 2b 1 4 5 7 8 |
#7
| |||
| |||
|
|
__/ [Lamberti Fabrizio] on Monday 29 August 2005 09:50 \__ sorry this is the table: 2 2b 1 4 5 7 8 You mean /this/? ================================== |
|
================================== In UseNet, you should never post HTML messages. It causes confusion and results on chaos. The above is _not_ a copy extracted from the source (Els and others, you can copy and paste the above to view). I had to clean up about 30 invalid characters just to be able to view it as a page. |
#8
| |||
| |||
|
|
Lamberti: the reason the height of 100% isn't obeyed by IE, is that you didn't say 100% of what. The TD hasn't a set height. To get both IE and other browsers to obey, feed IE a 1px height to the TD. Like so: td.test{_height:1px;} (the underscore makes the style invisible for anything but WinIE) |
|
Best is though to not want a div in a table cell for colour. Just set the colour to the table cell itself. I know but it's necessary to use a DIV in this case |
![]() |
| Thread Tools | |
| Display Modes | |
| |