zen.org Communal Weblog

January 31, 2007

-@-moz-document

Filed under: — sven @ 15:02 GMT

I found a new CSS trick yesterday. If you have a block of CSS that messes up other browsers but Mozilla browsers stick it it a @-moz-document block, like:

CSS for every browser here
@-moz-document url-prefix()
{
Mozilla only CSS here
}

It would be really cool if every browser had some sort of @ rule to parse out browser specific code like this rather then using tricks.

No Comments »

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

(required)

(required)


Powered by WordPress