When we include an image in a web page with the following code
<html><body>
<img src="http://www.example.com/abc.jpg">
</body></html>
The browsers render it so that there is a margin of few pixels to the left and the top. I want the image to stick to the the left and top borders.
Help needed with that.
Thanks
You have several options:
Use a CSS reset. Simple example:
Use
position: absolute;to “forcefully” put the image wherever you want it to be (can be controlled withtop,right,bottomandleft.