![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Martin Honnen wrote: It could also help to add li.navitem { display: block; } but I am not sure IE5 will like it if you try to change the display property of <li> elements. But the <li> element is already block level. |
#2
| |||
| |||
|
|
Brian wrote: But the <li> element is already block level. With CSS 2 the suggested rule defining the display value for the HTML LI element is LI { display: list-item } |
#3
| |||
| |||
|
|
*Martin Honnen* <mahotrash (AT) yahoo (DOT) de>: Brian wrote: But the <li> element is already block level. With CSS 2 the suggested rule defining the display value for the HTML LI element is LI { display: list-item } Like with 'table' and 'block', elements with 'display' set to 'list-item' generate block-level boxes. The same applies to 'compact' and 'run-in', sometimes. |
![]() |
| Thread Tools | |
| Display Modes | |
| |