0

I currently use Twitter's Bootstrap for some small projectsand. I put all the CSS changes in a new .css file. But how can I unset CSS attributes from the original bootstrap.css?

Already tired setting it to 0, but that won't work for all attributes.

.example { color: 0; } for example doesn't work.

Any ideas?

Nikola K.
  • 7,093
  • 13
  • 31
  • 39
krnflake
  • 59
  • 1
  • 7
  • 2
    I don't see any reasons why would you reset a property. You probably won't like it's default or inherited value, so why not just set it to a value you want? You can use [**Reset CSS**](http://meyerweb.com/eric/tools/css/reset/). – Nikola K. Sep 25 '12 at 19:09
  • 1
    Maybe you should apply Twitter Bootstrap only to specific elements ? This might give you some pointers : http://stackoverflow.com/a/11841957/1478467 (not the same context, but still valid) – Sherbrow Sep 25 '12 at 19:19

2 Answers2

3

It's better you specify your own value, since setting it to default may be tricky:

Initial value for color property depends on user agent

Juicy Scripter
  • 25,778
  • 6
  • 72
  • 93
0

Try this:

.example { color:inherit; }
Rick Kuipers
  • 6,616
  • 2
  • 17
  • 37