Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

  1.  permalink
    I'm using some of the Mozilla CSS Extensions
    for instance
    -moz-opacity

    And it doesn not validate as valid CSS property.
    Is the a work around?

    Cheers,DS
    • CommentAuthorL3ggy
    • CommentTimeMay 12th 2007
     permalink
    use

    .blah {
    opacity:1;
    }
  2.  permalink
    Thanks but this is not what I need.
    Any way I end up with writting JavaScript that creates extra css file
    which contain browser specific filters.

    Works like charm.

    Cheers, DS
    • CommentAuthorPettyRider
    • CommentTimeMay 12th 2007
     permalink
    How does that work like a charm, whereas opacity: 1; filter: alpha(opacity=100) doesn't? Because it validates? I just don't see that as practical.
  3.  permalink
    -moz-opacity:0.8;
    filter:alpha(opacity=80);

    Properties like that will not validate as valid CSS code.
    So I have to hide it from W3C validator with JS script.

    Simple solution and it works.

    DS
    • CommentAuthorvarland
    • CommentTimeMay 13th 2007
     permalink
    If you're so worried about valid CSS, I'd argue that using javascript to implement invalid CSS is just as bad as having the invalid CSS there from the start. Not only are you using invalid CSS, but you're wasting resources to do so.
    • CommentAuthorPettyRider
    • CommentTimeMay 13th 2007
     permalink
    .. and you're putting style information in the behavior level. If you want opacity, you're going to break one "rule" or another because CSS 3 is so far away. I prefer to keep it in my stylesheet where it belongs
Add your comments
    Username Password
  • Format comments as (Help)