Hello. In #container is the .player block:

 <div id="container"> <div class="player"> </div> </div> 

#container is registered in CSS #container padding: 1%; .

 #container { padding: 1%; } 

How to make it so that .player does not install padding from #container? (tried !important )

  • @misc, padding is not inherited - etki
  • @Etki, vkurse - but I get something that is inherited. - misc
  • one
    @misc, I put the traditional five bucks, that even you do not have any magic and nothing is inherited. Open the inspector and see. - etki
  • @Etki created a page on jsbin: jsbin.com/bihawepuzu - misc
  • one
    @misc, then something else, this code does not cause problems and inheritance does not occur: jsfiddle.net/cx7939j1 Try to localize the problem or make a workable example. ---------- UPD: @misc, on your page in jsbin, too, there is no inheritance. There is padding for container, which shifts the image to the right, but for the .player property, the padding property is not set or inherited. Like my jsfiddle example. - Alex Krass

0