Previous Message
Next Message

Re: [css-d] NS6 & XHTML DOCTYPES

Sent by Liorean on 25 January 2002 16:04

At 14:24 2002-01-25 -0500, Jim Barraud wrote:
>Hi All -
>Wat a relief to have a list all about css. I'm not sure if this question 
>is directly css related, but I figured someone on this list should know.
>I've recently been doing some sites that are CSS and XHTML compliant. No 
>errors. But in NS6 I get breaks after my images. This doesn't happen in 
>any other browser. But once I take out the XHTML/Transitional DOCTYPE.. it 
>works in NS6. Put back the DOCTYPE and it's broken again. I've been able 
>to work around the problem some-what by putting the images as DIV 
>background images... but this just isn't going to work for every image.
>I don't have any live sites to show, but I was wondering if anyone else 
>has come across this and has a reason/solution.

I've never seen the thing you talk about in effect, but I know of a problem 
that you could be affected by:

It's the fact that Moz/Ns6 does render "display: block;", "display: 
inline;" as it should instead as how it's been done in the past.

You see, if you set an image to "display: block;", it's supposed to line 
break after the image, unless you've set it to float.
In standards compliant mode, Moz has images set to "display: inline;" to 
get the searched for behavior - no line break.  That means that images are 
affected by line-height rules. If a line-height is set to a size above the 
image's height, it will handle the image as were it a character, when it 
comes to baseline alignment and such.

Well, my conclusion from this is that you likely are setting images to 
"display: block;". Don't. Use inline and a zero line-height.

// Liorean
Previous Message
Next Message

Message thread: