For that you need to use Less or Sass which are CSS Dynamic languages.
here’s some comparison between both technologies.
More Related Contents:
- How can I define colors as variables in CSS?
- How to thematize in lesscss
- Can I use variables for selectors?
- Creating CSS Global Variables : Stylesheet theme management [duplicate]
- Create a variable in .CSS file for use within that .CSS file [duplicate]
- What is the difference between “word-break: break-all” versus “word-wrap: break-word” in CSS
- Browsers’ default CSS stylesheets
- What are -moz- and -webkit-? [duplicate]
- CSS hexadecimal RGBA?
- CSS: center element within a element
- How can I transition width of content with width: auto?
- Create a Masonry grid with flexbox (or other CSS)
- Can I style the resize grabber of textarea?
- Proper way to apply CSS to HTML5 custom elements
- Bootstrap: align input with button
- CSS: background image on background color
- Vertical and horizontal align (middle and center) with CSS [duplicate]
- How to render multiple columns with Markdown in GitHub README?
- Remove all padding and margin table HTML and CSS
- How do negative margins in CSS work and why is (margin-top:-5 != margin-bottom:5)?
- Calc of max, or max of calc in CSS
- Overflow to left instead of right
- Cross-Fade between images with CSS in loop
- C++ Global variable declaration
- How to add border radius on table row
- How do I use CSS to position a fixed variable height header and a scrollable content box?
- CSS to stop text wrapping under image
- How do I change md-input-container placeholder color using css in angular material?
- internet explorer font face ssl
- Styling the arrow on bootstrap tooltips [duplicate]