views:

158

answers:

2

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 bloc works not one the content

+2  A: 

You could try this :

#content .bloc h2
{
    margin-right: 0;
}

I'm not sure I understood your question perfectly well, espescially the last sentence...

greg0ire
thx, this also works but I prefered one above.
Amirouche Douda
+3  A: 

Try !important, like this:

.bloc h2 
{
    margin-right:0px !important;
}
Marc Tidd
thanks, now it works
Amirouche Douda