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

25th May 2021, 3:51 PM
Knowledge Pedia
Knowledge Pedia - avatar
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...
25th May 2021, 4:05 PM
visph
visph - avatar
+ 1
visph thanx it helped
25th May 2021, 4:09 PM
Knowledge Pedia
Knowledge Pedia - avatar