I have two div's one with span that have text, and second with image.
So to the first div (draggableTemplate) with image I need set CSS with padding:0
and to the second div(draggableTemplate) with text I need set CSS with padding:10%
<div class="draggableTemplate">
    <img src="images/logo-blue.png" >
</div>
<div class="draggableTemplate">
    <span> Hello world...  </span>
</div>
I need something like this:
.draggableTemplate has: child(img) {
    //that have img child
    padding:0;
}
.draggableTemplate  has: child(span){
    //that have span
    padding:10%;
}
I need to set css to parent that have image inside and difrante css for parent with span inside
Set css to PARENT not child
 
     
    