Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to override a CSS class within a content div

I want to reimplement the property margin-right in a bloc whitin a content.

this is the content id css:

#content h2 {
      margin-right:2px;
            }

this is the bloc class css:

    .bloc h2 {
margin-right:0px;
                }

I want the margin-right of the ".bloc" css fires rather than the "#content" css

like image 335
Amirouche Douda Avatar asked May 30 '10 20:05

Amirouche Douda


1 Answers

Try !important, like this:

.bloc h2 
{
    margin-right:0px !important;
}
like image 168
Marc Tidd Avatar answered Sep 24 '22 02:09

Marc Tidd