/    Sign up×
Community /Pin to ProfileBookmark

Make image flush with edge of browser

I used to know how to do this, but its been a while. How do I get an <img> to be flush with the left and top of the browser window?

to post a comment
HTML

8 Comments(s)

Copy linkTweet thisAlerts:
@khakiJun 03.2003 — you could absolutly position it using CSS.

Do you use CSS?

? k
Copy linkTweet thisAlerts:
@CharlesJun 03.2003 — [font=monospace]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"

"http://www.w3.org/TR/html4/strict.dtd">

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<title>Example</title>

<style type="text/css">

body, img {border:0px; margin:0px; padding:0px}

</style>

<img alt="W3C &amp;copy;" src="http://www.w3.org/Icons/w3c_home">[/font]
Copy linkTweet thisAlerts:
@geuisauthorJun 04.2003 — I don't really use CSS a lot, though I know I should. I used to use an attribute that was placed into the <table> tag, like <table attribute="left"> or something like that.

I tried the CSS code. It works. I can always use it as an alternative, but I would love to try to remember how to do it with regular HTML like I used to.
Copy linkTweet thisAlerts:
@khakiJun 04.2003 — hi geuis...

do you mean something like:

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

(i think that's right... but thankfully CSS is making me forget this stuff :rolleyes: )

and why (if I may ask) is CSS an "alternative"?

Are you trying to be retro or something ?

marginally out of whack...

? k
Copy linkTweet thisAlerts:
@havikJun 04.2003 — <body marginheight="0" marginwidth="0">[/QUOTE]

That doesn't validate for the latest html doctype.

CSS should, in my opinion, be used instead as Charles posted.

my example:

<body style="margin: 0px;">

Havik
Copy linkTweet thisAlerts:
@khakiJun 04.2003 — ummmm...

duh!

read the post havik.

geez... I know it won't validate...

and I know it's not CSS.

since when is it a crime to try to provide the [I]requested[/I] solution? ?

feel free to correct me if the html solution that I provided is wrong (and maybe it is ? )...

but otherwise...

HUH?

? k
Copy linkTweet thisAlerts:
@IrDaJun 04.2003 — khaki's solution will work and I believe it is the only way to do it. Either by css or use <body margin> properties.
Copy linkTweet thisAlerts:
@havikJun 04.2003 — 
[B]geez... I know it won't validate...

and I know it's not CSS.



since when is it a crime to try to provide the [I]requested[/I] solution? ?

[/B]
[/QUOTE]


I know you know it won't validate and it's not CSS, I was pointing that out to geuis.

C'mon khaki, you know that I know that you know (confusing? ?) that doesn't validate.

Havik
×

Success!

Help @geuis 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 6.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...