HighDots Forums  

Re: Different padding different browser

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Re: Different padding different browser in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Michael Winter
 
Posts: n/a

Default Re: Different padding different browser - 01-05-2005 , 12:54 PM






On Wed, 5 Jan 2005 12:42:58 -0500, Harlan Messinger
<h.messinger (AT) comcast (DOT) net> wrote:

Quote:
"Mel" <mel.m.heravi (AT) hp (DOT) com> wrote in message
news:41dc1911$1 (AT) usenet01 (DOT) boi.hp.com...
[snip]

Quote:
div style=padding:10px>hello</div
[snip]

Quote:
Use quotes to delimit attribute values, and you won't have this problem.
That was my first impression, too. However, attribute values don't need to
be quoted if they only contain letters, digits, hyphens, periods,
underscores and colons. As the one in question does, it *should* be OK.
I'd have thought that the problem is more likely to be different
margin/padding combinations across all of the elements involved.

Mike

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


Reply With Quote
  #2  
Old   
Neal
 
Posts: n/a

Default Re: Different padding different browser - 01-05-2005 , 01:01 PM






Michael Winter <M.Winter (AT) blueyonder (DOT) co.invalid> wrote:

Quote:
Harlan Messinger <h.messinger (AT) comcast (DOT) net> wrote:

Use quotes to delimit attribute values, and you won't have this
problem.

That was my first impression, too. However, attribute values don't
need to be quoted if they only contain letters, digits, hyphens,
periods, underscores and colons. As the one in question does, it
*should* be OK.
Not agreeing nor disagreeing, yet quoting attributes is still a very
good habit to develop. Might not actually fix this problem, but it's
certainly a good suggestion.


Reply With Quote
  #3  
Old   
Harlan Messinger
 
Posts: n/a

Default Re: Different padding different browser - 01-05-2005 , 01:50 PM




"Michael Winter" <M.Winter (AT) blueyonder (DOT) co.invalid> wrote

Quote:
On Wed, 5 Jan 2005 12:42:58 -0500, Harlan Messinger
h.messinger (AT) comcast (DOT) net> wrote:

"Mel" <mel.m.heravi (AT) hp (DOT) com> wrote in message
news:41dc1911$1 (AT) usenet01 (DOT) boi.hp.com...

[snip]

div style=padding:10px>hello</div

[snip]

Use quotes to delimit attribute values, and you won't have this problem.

That was my first impression, too. However, attribute values don't need to
be quoted if they only contain letters, digits, hyphens, periods,
underscores and colons. As the one in question does, it *should* be OK.
My mistake. But, to digress, the line in the spec that follows the one you
paraphrase above says, "We recommend using quotation marks even when it is
possible to eliminate them." The reason for this is ease of reading and
maintenance, and here was a case where that came into play, because as the
code appeared on my screen, I thought there was a space after the colon. If
the value were quoted, I wouldn't have looked twice because the space
wouldn't have mattered even if it were there.

Just out of curiosity, though: what if you *tried* it to see if it fixed the
problem? It may be a browser bug.

Quote:
I'd have thought that the problem is more likely to be different
margin/padding combinations across all of the elements involved.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.