BreakHead BreakHead - 3 years ago 87
CSS Question

CSS Equivalent of the "if" statement

Is there any way to use conditional statements in CSS?

Answer Source

No. But can you give an example what you have in mind? What condition do you want to check?

Maybe Sass or Compass are interesting for you.

Quote from Sass:

Sass makes CSS fun again. Sass is CSS, plus nested rules, variables, mixins, and more, all in a concise, readable syntax.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download