/    Sign up×
Community /Pin to ProfileBookmark

Aligning an image to top left

hey

I want to align an image to the top left of the page. when I do it leaves space and dosent put it in the corner. How could I make it put it in the corner (like at pixel 0,0)??

Thanks in advance

to post a comment
HTML

4 Comments(s)

Copy linkTweet thisAlerts:
@soccer362001Feb 15.2004 — This goes in the head

<style type="text/css">

#image{position:absolute; top:0px; left:0px;}

</style>

This goes in the body.

<div id="image">

<img src="...">

</div>
Copy linkTweet thisAlerts:
@Guitar_dude23authorFeb 15.2004 — Thanks alot for the quik response
Copy linkTweet thisAlerts:
@soccer362001Feb 15.2004 — Your welcome.
Copy linkTweet thisAlerts:
@crh3675Feb 15.2004 — Actually, if you have your default body margins set at 0
<i>
</i>body{
margin-top:0px;
margin-left:0px;
}


Your image should nest nicely against the borders.
×

Success!

Help @Guitar_dude23 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...