HighDots Forums  

:before and :after content in IE6

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


Discuss :before and :after content in IE6 in the Cascading Style Sheets forum.



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

Default :before and :after content in IE6 - 07-07-2005 , 05:08 PM






Problem example:

http://www.key-horse.com/fftst-content.html

I can't find a workaround for my problem on the web; I can't even find
a report of the problem. But I remember that the problem was discussed
in this group some time ago.

I define two classes, .star2 and .star3, that include content thus:

<style type="text/css">
.star2:before {content: "** "}
.star3:before {content: "***"}
</style>

This works great in FF, but does not work at all in IE 6.0. Is this a
bug in IE 6.0? If so, what's a reasonable workaround, if any?

Thanks!

-- fredo


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

Default Re: :before and :after content in IE6 - 07-07-2005 , 05:14 PM






fredo wrote:

Quote:
Problem example:

http://www.key-horse.com/fftst-content.html

I can't find a workaround for my problem on the web; I can't even find
a report of the problem. But I remember that the problem was discussed
in this group some time ago.

I define two classes, .star2 and .star3, that include content thus:

style type="text/css"
.star2:before {content: "** "}
.star3:before {content: "***"}
/style

This works great in FF, but does not work at all in IE 6.0. Is this a
bug in IE 6.0? If so, what's a reasonable workaround, if any?
Not sure if I would call it a bug. IE just doesn't support it at all.
The only workaround I know of is just simply writing it in the HTML
instead of in the CSS.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: David Bowie - Let's Spend The Night Together


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

Default Re: :before and :after content in IE6 - 07-08-2005 , 10:17 AM



Quote:
Not sure if I would call it a bug. IE just doesn't support it at all.
Thank you.

I would call such an omission a bug of the first water. It renders a
useful CSS feature forever unusable in practice if I want support from
IE; if I want to avoid js; or if I want to serve the smallest html
files. All worthwhile goals, imo.

The IETF asks for reference implementations of a proposed standard. Too
bad something similar couldn't happen with CSS realization in browsers.
Ah, hindsight!

-- fredo



Reply With Quote
  #4  
Old   
fredo
 
Posts: n/a

Default Re: :before and :after content in IE6 - 07-08-2005 , 12:43 PM



Quote:
MS never claimed IE6 was a CSS2 browser
Thanks! News to me. As for reference implementations:

Quote:
Well, there is Amaya and the new Candidate Recommendation (CR) status,
which requires two interoperable implementations to advance. CR was
introduced into the W3C specification process after the publication of
CSS 2.0, but CSS 2.1 uses it.
These implementations will be very useful for all in five years or so.

Thanks for the clarification on IE's claims, Christoph. I appreciate
that.

-- fredo



Reply With Quote
  #5  
Old   
fredo
 
Posts: n/a

Default Re: :before and :after content in IE6 - 07-10-2005 , 11:10 PM



Christoph said:

Quote:
Well, there is Amaya and the new Candidate Recommendation (CR) status,
which requires two interoperable implementations to advance.
(...) CSS 2.1 uses it.
Then I said, not entirely ironically:

Quote:
These implementations will be very useful for all in five years or so.
Christoph replied:

Quote:
Firefox, Opera and Konqueror/Safari are close to be
interoperable implementations of CSS 2.1 *already*
and all are working to becoming closer.
This is tremendously encouraging. But you've heard it many times
before: I can't make customers use Firefox. Hugely useful CSS features
are lost to me. (Maybe: "best viewed in Konqueror" :-) When the
customer is the audience, we're hostage to the older browsers that
customers want to use. Including IE6.0 five years in the future.

I therefore believe that true compliance and interoperability (what a
beautiful dream!) will benefit me wrt to my customers only after
today's non-compliant browsers have mostly fallen out of use.

Quote:
We'll see soon what IE7 is.
Yes. One hopes. Thank you again, Christoph, for correcting me on IE6.0
claims. This might mean I'll have to stop bitching about IE6.0. Now
/that/ will be of great, immediate benefit to those who've had to
listen to me :-)

-- fredo



Reply With Quote
  #6  
Old   
Leonard Blaisdell
 
Posts: n/a

Default Re: :before and :after content in IE6 - 07-10-2005 , 11:37 PM



In article <1121051400.005938.266120 (AT) g44g2000cwa (DOT) googlegroups.com>,
"fredo" <fredo (AT) key-horse (DOT) com> wrote:

Quote:
Yes. One hopes. Thank you again, Christoph, for correcting me on IE6.0
claims. This might mean I'll have to stop bitching about IE6.0. Now
/that/ will be of great, immediate benefit to those who've had to
listen to me :-)
Hell, it seems like just last year that we were bitching about NN4 and
Mac IE5 was top of the line. Things are looking up.

leo

--
<http://web0.greatbasin.net/~leo/


Reply With Quote
  #7  
Old   
fredo
 
Posts: n/a

Default Re: :before and :after content in IE6 - 07-14-2005 , 12:32 PM



Leonard Blaisdell:

Quote:
Hell, it seems like just last year that we were bitching about NN4 and
Mac IE5 was top of the line.

Either your memory needs time-adjustment or
your "we" doesn't include me
In truth, it was just last week :-)



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 - 2008, Jelsoft Enterprises Ltd.