Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Image to appear in top left hand corner of page with no gaps

Status
Not open for further replies.

bobrivers2003

Technical User
Oct 28, 2005
96
GB
I simply want to have an image appear exactly in the top left hand corner of a page with no surrounding gaps. I have tried:

<html><a href="#" onClick="window.close()"><img style="margin:0; padding:0;" src="images/alert.gif" border="0"></a></html>

i have also tried putting the code all on one line but a gep still appears, roughly 5mm think around the image.

Any help would be greatly appreciated

Many Thanks
 
I think this is more what you are looking for...
Code:
<html>
<head>
<style type="text/css">
body { margin:0; padding:0; }
img { border:0; }
</style>
</head>
<body>
<a href="#" onClick="window.close()"><img src="images/alert.gif"></a>
</body>
</html>
Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top