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

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -