![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have been unable to get a div to have a height less than about 20 pix in IE6. Is there some css that I can use as an in-line style that will guarantee that the empty div that it is applied to will have 5 pixels height? |
#3
| |||
| |||
|
|
I have been unable to get a div to have a height less than about 20 pix in IE6. Is there some css that I can use as an in-line style that will guarantee that the empty div that it is applied to will have 5 pixels height? You need to set the font-size to something small, eg. 1px, since IE gives all divs the height of one line of text even if there are no characters present. Worry a bit about users who set a minimum font size. I think you'll be OK as IE doesn't allow users to do this, and other browsers that do allow it don't impose it when the div is empty. --Phil. |
![]() |
| Thread Tools | |
| Display Modes | |
| |