padding on image in IE

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi Folk

I have an image with a class that has padding associated with it, however,
in IE the padding does not seem to be applied.

Try :

to see an example (little thumbs are 5px lower and further over to the right
in firefox).


- Nicolaas

Re: padding on image in IE

Quoted text here. Click to load it

Sounds like IE running in "Quirks Mode".

Quoted text here. Click to load it

Yep. You can fool the fool (i.e., make IE run in "Standards Mode", i.e. in
less nonstandard mode) by using a DOCTYPE declaration that has the exact
spelling of the declaration described in the HTML 4.01 specification:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        " ">

(And put it first in the file. A blank line might not hurt, but I wouldn't
take the risk.)

Yucca, /
Pages about Web authoring:

Site Timeline