Make image flush with edge of browser

liunx

Guest
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?<!--content-->you could absolutly position it using CSS.<br />
<br />
Do you use CSS?<br />
<br />
;) k<!--content--><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"<br />
"http://www.w3.org/TR/html4/strict.dtd"><br />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><br />
<title>Example</title><br />
<style type="text/css"><br />
body, img {border:0px; margin:0px; padding:0px}<br />
</style><br />
<img alt="W3C &copy;" src=http://www.webdeveloper.com/forum/archive/index.php/"http://www.w3.org/Icons/w3c_home"><!--content-->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.<br />
<br />
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.<!--content-->hi geuis...<br />
<br />
do you mean something like:<br />
<br />
<body marginheight="0" marginwidth="0"><br />
<br />
(i think that's right... but thankfully CSS is making me forget this stuff :rolleyes: )<br />
<br />
and why (if I may ask) is CSS an "alternative"?<br />
<br />
Are you trying to be retro or something :)<br />
<br />
marginally out of whack...<br />
;) k<!--content--><body marginheight="0" marginwidth="0"> <br />
<br />
That doesn't validate for the latest html doctype.<br />
<br />
CSS should, in my opinion, be used instead as Charles posted.<br />
<br />
my example:<br />
<body style="margin: 0px;"><br />
<br />
Havik<!--content-->ummmm...<br />
<br />
duh!<br />
<br />
read the post havik.<br />
<br />
geez... I know it won't validate...<br />
and I know it's not CSS.<br />
<br />
since when is it a crime to try to provide the requested solution? :(<br />
<br />
feel free to correct me if the html solution that I provided is wrong (and maybe it is :confused: )...<br />
<br />
but otherwise...<br />
HUH?<br />
<br />
:( k<!--content-->khaki's solution will work and I believe it is the only way to do it. Either by css or use <body margin> properties.<!--content-->geez... I know it won't validate...<br />
and I know it's not CSS.<br />
<br />
since when is it a crime to try to provide the requested solution? :(<br />
<br />
<br />
I know you know it won't validate and it's not CSS, I was pointing that out to geuis.<br />
<br />
C'mon khaki, you know that I know that you know (confusing? :D) that doesn't validate.<br />
<br />
Havik<!--content-->
 
Back
Top