• Way back when I was using MovableType I could use a setvar and getvar for elements in CSS…things like colors and fonts and such.

    This simplified (somewhat) experimenting with different styles without endless scrolling through a large css file.

    Anyone know of a similar way to do it in WordPress?

    Thanks.

Viewing 1 replies (of 1 total)
  • A proper css files can’t do that. But you can put css values in a php file (like your header), and use php variables to experiment. Anything you duplicate in the header will replace what is in the css files, as long as it comes after the call to your css page.

    Something you might really appreciate is the web developer plugin for firefox. I use it to experiment with CSS. You can call up an edit css panel, change something, and the change is instantly reflected on the page. I mainly use it for colors and for precise position of certain items.

    You need the firefox browser, and then just go Tools > Extension, and then click the Get More Extensions link at the bottom right. You can search for “Web Developer”. It gives you a bunch of cool stuff that is all very useful for developing web pages.

Viewing 1 replies (of 1 total)

The topic ‘variables in CSS’ is closed to new replies.