Forum Moderators: open

Message Too Old, No Replies

CSS, Content and Internet Explorer

How do I display content text in IE

         

kaled

10:15 am on Jun 9, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I was having a play a few days ago trying to solve a minor problem and thought about specifying paragraph content e.g.

P:before {content: "J"; color: red}

Works in Opera and Mozilla, does nothing in IE.

Any thoughts?

Kaled.

encyclo

10:22 am on Jun 9, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, sadly it's never going to work. Guess what? IE doesn't support :before.

fwordboy

2:28 pm on Jun 9, 2004 (gmt 0)

10+ Year Member



sadly there are quite a lot of bits of css2 that ie doesn't support. Dean Edwards has created a solution to this called IE7 [dean.edwards.name] where you can add his stylesheet to your page to make IE more complient.