|
Posted by Rob T. on May 14, 2005, 11:41 am
Please log in for more thread options
wrote:
>Rob T. wrote:
>
>> I'm trying to use a div tag to make an element of height 16 pixels but
>> IE forces it to be 19 pixels. Anything smaller than 19 gets enlarged
>> to 19. Is there any way around this?
>>
>> #row1
>> {
>> background: #0000FF;
>> width: 766px;
>> height: 16px;
>> }
>>
>> That's pretty much all I'm trying to do, but IE makes it 19 pixels in
>> height.
>
>IE extends heights to encompass the contents.
>If you set the font-size and line-height to less than 16px (even if
>the div is empty), the div will probably stick to the assigned 16px
>height.
That works, thank you!
|