HighDots Forums  

Re: Span width

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


Discuss Re: Span width in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mark Smith
 
Posts: n/a

Default Re: Span width - 01-06-2009 , 11:10 AM






Quote:
It works fine in IE, but not in the mozilla breed of browsers.

No, it works fine (in the technical sense of working according to
specifications) on Mozilla and also on IE in "standards" mode.
Nope in IE7 in standard mode it "works" in that it honours the width.

Quote:
I've
read quite a few threads about this and understand that the problem is
the width property only applies to block elements. Not to inline
elements like span. In this sense IE is wrong.

So if you knew that, why did you write roughly the opposite first?
I said it worked in the sense it honoured the width attribute, as you
already very well know.

Quote:
But what are you trying to accomplish? If you just want 400px empty space to
the left of "Hello", as happens on IE in "quirks" mode, why don't you simply
e.g. wrap "Hello" inside an element and set padding-left: 400px for it?

I'm trying to have placeholders before and after some text, which a
user can customize by only modifying css. Padding is only one use for
it they, may also want different colours or different background
images, or nothing at all on either side of the text...


Reply With Quote
  #2  
Old   
Andy Dingley
 
Posts: n/a

Default Re: Span width - 01-06-2009 , 12:08 PM






On 6 Jan, 16:10, Mark Smith <marksmith5... (AT) jungle-monkey (DOT) com> wrote:

Quote:
Nope in IE7 in standard mode it "works" in that it honours the width.
That's possibly "useful", but it isn't "works" in the sense of
"complies with what the spec says".

The trouble with "useful" is that it usually means, "useful today, a
damn nuisance tomorrow, and unpredictable for either".


Reply With Quote
  #3  
Old   
Bergamot
 
Posts: n/a

Default Re: Span width - 01-06-2009 , 01:31 PM




Mark Smith wrote:
Quote:
in IE7 in standard mode it "works" in that it honours the width.
Not in my tests, it doesn't. Neither IE6 nor IE7 in standards mode
should apply width to a span element (or any other non-replaced inline
element) unless it's also styled as a block element.

Post a URL if you are seeing something else.

Quote:
I'm trying to have placeholders before and after some text, which a
user can customize by only modifying css.
Try floats.

--
Berg


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.