javascript - how to resize images inside a div inside another div with css? -


i want resize images in div specific class, inside other div other specific class. images inside div inside other div should not resized.

this works if want resize images inside classed div:

div.classname>img { width:something; } 

but doesn't work:

div.classname2 > div.classname > img { width:something; } 

markup

<div class="classname2">     <div class="classname">         <img>     </div> </div> 

but can't refer inside class name.

so, make clear, need resize these images:

<div class="classname2">     <div class="classname">         <img>     </div> </div> 

but not these:

<div class="classname">     <img> </div> 

i feel css rule should work

div.classname2 > div.classname > img { width:something; } 

does fiddle show you're trying illustrate? if so, perhaps have overriding css rules somewhere?


Comments

Popular posts from this blog

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Using jquery append to add option values into a select element not working -

javascript - Restarting Supervisor and effect on FlaskSocketIO -