Title: variables in CSS
Last modified: August 18, 2016

---

# variables in CSS

 *  [kfosterm](https://wordpress.org/support/users/kfosterm/)
 * (@kfosterm)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/variables-in-css/)
 * 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)

 *  [manstraw](https://wordpress.org/support/users/manstraw/)
 * (@manstraw)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/variables-in-css/#post-420444)
 * 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.

 * 1 reply
 * 2 participants
 * Last reply from: [manstraw](https://wordpress.org/support/users/manstraw/)
 * Last activity: [19 years, 8 months ago](https://wordpress.org/support/topic/variables-in-css/#post-420444)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
