View Full Version : before after ?
jeorg
11-24-2002, 04:49 PM
this code doesn't work in Mozilla or IE 6
p.Quot
{
display:block;
color:tan;
}
p.imag
{
display:block;
color:tomato;
}
p.Quot : before
{
content: open-quote;
color:tan;
}
p.imag : before
{
content: url(../images/boutons/puceImp.gif);
}
do you know why ??
thank you
Bosko
11-24-2002, 05:03 PM
IE simply sucks at CSS,so it doesn't support the :before or :after pseudo-classes.
Could you show us the complete code?What exactly doesnt work?As far as I know there isnt anything wrong with the css code.
BrainJar
11-24-2002, 05:22 PM
Get rid of the spaces around the ":" and it should work on Mozilla.
p.Quot:before
{
content: open-quote;
color:tan;
}
p.imag:before
{
content: url(../images/boutons/puceImp.gif);
}
jeorg
11-24-2002, 06:53 PM
super BrainJar ! it work with Mozilla :-)))
thank you
COBOLdinosaur
11-24-2002, 06:55 PM
One of those irregular implementations. You have to quote the url:
content: url("../images/boutons/puceImp.gif")
jeorg
11-25-2002, 07:06 PM
but even topstyle 3.0 don't do it !
is it a w3 recommandation ?
Originally posted by jeorg
but even topstyle 3.0 don't do it !
is it a w3 recommandation ?
Yes. (http://www.w3.org/TR/CSS2/generate.html#propdef-content)
jeorg
11-25-2002, 07:30 PM
ok thanks again jkd !
but really I cannot understand why a programm supposed to be the best for CSS don't do it !
I think I shall continue coding my CSS with editplus
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.