Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8

Thread: before after ?

  1. #1
    Regular Coder
    Join Date
    Jul 2002
    Posts
    128
    Thanks
    0
    Thanked 0 Times in 0 Posts

    before after ?

    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

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    The Netherlands
    Posts
    217
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Posts
    185
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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);
    }

  • #4
    Regular Coder
    Join Date
    Jul 2002
    Posts
    128
    Thanks
    0
    Thanked 0 Times in 0 Posts

    well done

    super BrainJar ! it work with Mozilla :-)))

    thank you

  • #5
    Regular Coder COBOLdinosaur's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    369
    Thanks
    2
    Thanked 26 Times in 26 Posts
    One of those irregular implementations. You have to quote the url:

    content: url("../images/boutons/puceImp.gif")
    100% standards compliant code is 100% correct 100% of the time.
    one of my toys from my repository and perhaps some help getting help

    Cd&

  • #6
    Regular Coder
    Join Date
    Jul 2002
    Posts
    128
    Thanks
    0
    Thanked 0 Times in 0 Posts

    but

    but even topstyle 3.0 don't do it !
    is it a w3 recommandation ?

  • #7
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts

    Re: but

    Originally posted by jeorg
    but even topstyle 3.0 don't do it !
    is it a w3 recommandation ?
    Yes.

  • #8
    Regular Coder
    Join Date
    Jul 2002
    Posts
    128
    Thanks
    0
    Thanked 0 Times in 0 Posts

    :-))

    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •