"J. Paul Reed" wrote:
> 
> I have a question regarding HTML 4.01 and the <img> tag; I'm having a
> problem with a site I'm working on, and I don't know if it's Mozilla, or
> me, or what.
> 
> If you take a look at http://pr2.sigkill.com/mozbug2.html you'll see
> what I'm trying to get. Pay particular attention to the blue and white
> lines under the P-logo in the upper lefthand corner, above Quick Search.
> 
> When I add the following DOCTYPE:
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd";>
> 
> the page renders like so:
> 
> http://pr2.sigkill.com/mozbug1.html
> 
> Note how those alternating blue and white lines have a large space
> between them.
> 
> I've tried everything I could think of to make mozbug1 look like
> mozbug2; border="0", vspace="0", etc.
> 
> So, is this a known bug? Heck, is this even a bug? Is there some other
> way I should be doing it?

It's an invalid bug: http://bugzilla.mozilla.org/show_bug.cgi?id=22274 .
Use IMG { display: block } to avoid this behavior or do not
use a doctype triggering standards mode (e.g. HTML 4.0 instead
of HTML 4.01 or doctype without URI in it).

BTW, don't use things like <IMG /> in HTML. It's an X(HT)ML
only construct and you'll get problems once I fix
http://bugzilla.mozilla.org/show_bug.cgi?id=94284 .

> I'm using Moz 0.9.3; for what it's worth, NS4 renders it "correctly", as
> does IE 5.0.

You might be interested in
http://validator.w3.org/check?uri=http%3A%2F%2Fpr2.sigkill.com%2Fmozbug1.html&doctype=Inline
too.

Clarence

Reply via email to