Previous Message
Next Message

Re: [css-d] Extra vertical space after styled DIVs in NN 4

Sent by Philip Hoyt on 31 January 2002 21:09


> Usually the culprit with these vertical space problems is margin and 
> padding. if you can put margins and padding in a seperate stylesheet 
> which you filter with @import you may find your Netscape problems go 
> away. Just a guess.
>
>> Because in NN4 most elements have some 'natural' margin that is quite 
>> difficult to get rid of. I assume you tried margin: 0;
>>
>>> On a hunch, I wrapped a FONT tag around everything, and set its size 
>>> to 7,
>>> then to 1.  I found that the height of this space changed 
>>> accordingly, which
>>> suggests that something like a line-break is being thrown in somehow.
>>> Similar to what happens to a pixel-tight table when there's whitespace
>>> before or after a cell's content.
>>
>> Then at a guess I'd say you have to remove the whitespace between the 
>> DIVs:
>>
>>  blah
>> </DIV><DIV ID="theotherone">
>>  blah
>>
>> But I wouldn't be surprised if it doesn't work. The simple truth is 
>> that NN4 isn't very good at CSS, to put it mildly. I've learned to 
>> live with this kind of things.
>>
>> ppk
>
Previous Message
Next Message

Possibly related: