html - CSS selector not working with children -
i want add css rules .container.picture in .medium-width. html is:
<div class="block medium-width"> <div class="container picture"> <img src="img/car4.png" title="car"> </div> <div class="container text"> </div> </div>
css is:
.medium-width > .container.picture { width: 50%; float: left; }
is wrong in selector?
no.
may have other rules applied, or context prevent selector working.
here, selector's right
Comments
Post a Comment