CSS Revolution - Use Condition Rules WITHIN Styles

CSS Revolution - Use Condition Rules WITHIN StylesUndoubtedly you will have found many a situation where different web-browsers require different style statements. Conditional-CSS addresses this by letting you add Internet Explorer style conditions inline with your CSS statements.

Condition example

CSS Revolution - Use Condition Rules WITHIN Styles

Why using it?

Conditional-CSS allows you to write maintainable CSS with conditional logic to target specific CSS statements at both individual browsers and groups of browsers.

  • Target CSS to any web-browser
  • Streamline maintenance of your CSS files
  • Optimise your CSS
  • Work around those annoying little CSS bugs
  • Automatic expansion and inclusion of @import statements
  • It’s free and open source!

Basic usage

The main use of Conditional-CSS is to be able to indicate if a particular CSS statement should be sent to a particular browser or not. Of course you won’t wish to do this often, but it is exceptionally useful when you do need to target a browser.

Any CSS statement or block can be prefixed by a conditional statement, of which there are three basic types:

  • [if {!} browser]
  • [if {!} browser version]
  • [if {!} condition browser version]

To get started with Conditional-CSS use the compiler to download a version suitable for your server platform, and read the usage guide, or see a demo in your own browser (original CSS).

Spread the words

Digg Del.icio.us Stumble Float Technorati Bump
Whatever you want to say!

Santhos Webdesign
Aug 21, 2008
No: 5 / ID: 2183

This looks great! I will check it out right away!


Shane
Aug 13, 2008
No: 4 / ID: 1929

I didn’t know you could do it inline like that. Thanks for the heads-up.

Leave a comment!
Note: You can also use your free Gravatar avatar on Knowtebook! Please also read our Publishing Policy before posting.

Yes, I would like to receive notification on incoming comments!

Trackbacks/Pings
Trackback-URL

[…] CSS Revolution - Use Condition Rules WITHIN Styles […]

[…] Visit Source. […]

[…] this by letting you add Internet Explorer style conditions inline with your CSS statements. View source Posted in : General Post statistics : 1 […]