How would i make an image nested in a div to set its size depending on the div class.
making an image smaller depending where it is in the page. For example:
<div class="a">
<img src="a.jpg">
<div>
<div class="b">
<img src="a.jpg">
<div>
I would like to set the image nested in “a” to size 10X10 and the other to size 20X20, how would i do this without creating different classes for the images?
in yout css file add this:
this will make any image in “a” be of size 10X10 and any image in class “b” be of size 20X20.