0
Please solve the error
In this code why the image at top i.e. image with div id as ab is not getting formatted? https://code.sololearn.com/WzTMKQ3DHvoq/?ref=app
2 Réponses
+ 2
because you doesn't apply width to the image but to the div...
in your css, change:
#ab {
by:
#ab img {
that will target / select any img tag inside element with id "ab"
OR alternativaly, set the id on the img tag rather than on its parent div...
+ 1
visph thanx it helped