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
1 Odpowiedź
0
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...
however, this is a duplicate thread, and you should remove this one ;P