CSS padding quirk?

V

Vespasian

Hi all,

I've noticed that the CSS padding attribute for DIV
works differently on different browsers. Actually, so
does the left attribute.

On Firefox, padding is added to the entire width
of a DIV, whereas in IE 6.0, it is not.

As for left, the default left value in Firefox
if left unspecified is 0, whereas in IE 6 it isn't.

Has anyone else noticed this?

Thanks,
Vesp
 
M

Michael Winter

On 03/06/2005 16:50, Vespasian wrote:

[snip]
On Firefox, padding is added to the entire width
of a DIV, whereas in IE 6.0, it is not.

When IE6 is put into Standards mode by including a complete DOCTYPE
declaration, it will act correctly. However, earlier versions will
always use the broken model.

Google "Box model" for more information.

[snip]

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,054
Latest member
LucyCarper

Latest Threads

Top