954,604 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

posting an image at the very left and top

hello everyone,

I am creating a website but i need to put an image at the very top left of the page, there is always a gap between the edge and the image. I used this code,

<body leftmargin="0">


but it only moved the image along slightly more to the left.

cuddlers89
Junior Poster in Training
57 posts since Mar 2004
Reputation Points: 11
Solved Threads: 0
 

yeap, cause you forgot about the top margin.. notice LEFT!

just use margin....

BinaryMayhem
Junior Poster
176 posts since Jun 2004
Reputation Points: 15
Solved Threads: 10
 

Thanks, used that, but still image is not touching the side and top of the page, which, is the effect that i wanted. Any other ideas?

cuddlers89
Junior Poster in Training
57 posts since Mar 2004
Reputation Points: 11
Solved Threads: 0
 

what is it doing then? did it move at all? maybe the image has a border around it? is it in a table? if you show some of the code I could better help you.

BinaryMayhem
Junior Poster
176 posts since Jun 2004
Reputation Points: 15
Solved Threads: 10
 

doesnt matter, i figured out what i did wrong

cuddlers89
Junior Poster in Training
57 posts since Mar 2004
Reputation Points: 11
Solved Threads: 0
 

To do this via HTML:

<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">

To do this via CSS:

<body style="margin:0px">
cscgal
The Queen of DaniWeb
Administrator
19,437 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 231
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: