Image positioning help

j3ron

New Member
Hi. I'm trying to place an image flush to the top-left edges of the screen - but no matter what I try, I get a "margin" (white space) to the top and to the left of the image.

See below link:
http://www.grafx.dk/testSite/index.html

Now. I'm aware that I can insert this graphic as a background and thus get rid of the white space - but I need to do it as an image in order to use it to define hotspots for links, as it's a menu bar.
I've tried using it in a frameset - and that doesn't seem to make any difference. Nothing I do gets rid of this whitespace to the left and top (the top especially is important - I can live with 5 pixels of whitespace to the left).
Anyone who can help?
 

j3ron

New Member
Got it figured out - I just needed to zero the margins and padding.



Code:
body {
background-color: #1c1811;
}

Becomes:

body {
margin: 0;
padding: 0;
background-color: #1c1811;
}
 

specialk

New Member
Yes, sometimes you have to tell your web page what you want, "no margin" is an order, it is interesting that the margin is default and not something that you should have to add in.
 
Top