Advertisements
Advertisements
प्रश्न
The following code intends to centralize the image mypic.gif in browser window:
<IMG src = "mypic.gif" align = center>
however, the desired result is not coming. Can you point out the reason for it and a solution for it?
कोड लेखन
लघु उत्तरीय
Advertisements
उत्तर
The image is getting loaded with the above given code but is not centralized because, center is not a valid alignment for images. To centralize an image, we may give:
<CENTER>
<IMG src = "mypic.gif">
</CENTER>shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
