I have this sample:
https://codepen.io/anon/pen/NwmPJa
CODE HTML:
<div class="product-info-main">
  <div class="product-add-form">
    <div class="qty">
    </div>
  </div>
</div>
<div class="product-social-links">
  <ul>
    <li>1</li>
    <li>2</li>
    <li>3</li>
  </ul>
</div>
CODE CSS:
.qty + .product-social-links{
      background: red;
}
why does not this CSS code go?
I really want to apply the style only if the .qty div exists.
How can I do this without javascript, just from CSS?
Thanks in advance!
 
     
    