Connecting Tech Pros Worldwide Forums | Help | Site Map

CSS padding quirk?

Vespasian
Guest
 
Posts: n/a
#1: Jul 23 '05
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

Tony Vasquez
Guest
 
Posts: n/a
#2: Jul 23 '05

re: CSS padding quirk?


Yeah, it's been like this since netscape was big. I am not surprised that
no one at MS has decided to fix this. They always do things, just a HAIR
different. Cross browser javascript code is the way to go on this one my
friend. Client side scripting at it's fullest!

Qz

"Vespasian" <vespy@klsaldjfldskjfkldjf.org> wrote in message
news:WJ6dncSYL8vK4T3fRVn-uQ@comcast.com...[color=blue]
> 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[/color]


VK
Guest
 
Posts: n/a
#3: Jul 23 '05

re: CSS padding quirk?


IE tried to lock the privacy vulnerability
<https://bugzilla.mozilla.org/show_bug.cgi?id=147777> w/o success, just
more mess in its model.

It seems to be nor fixable

Michael Winter
Guest
 
Posts: n/a
#4: Jul 23 '05

re: CSS padding quirk?


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

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

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

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Closed Thread