Bottom Left Align

Hi,

This is my code.

<body bgcolor="#C6BAA4" leftmargin="0" topmargin="0" bottommargin="0" rightmargin="0">
<div><a href="main.html"><img onMouseOver="window.status='- Enter';return true" onMouseOut="window.status='';return true" src="graphics/splash.jpg" border="0" width="279" height="161"></a></div>
</body>
</html>

How do I align the image with the bottom left corner of the screen (no tables please). Thanks.

-Sam
LVL 1
samblakeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

seanpowellCommented:
Try this:
<body bgcolor="#C6BAA4" leftmargin="0" topmargin="0" bottommargin="0" rightmargin="0">
<div style="position: absolute; bottom: 0px;"><a href="main.html"><img onMouseOver="window.status='- Enter';return true" onMouseOut="window.status='';return true" src="graphics/splash.jpg" border="0" width="279" height="161"></a></div>
</body>
</html>
seanpowellCommented:
For more css complaint code, you can transform the pelements this way:

<html>
<head>
<style>
<!--
body   { padding: 0px; margin: 0px; background-color: #C6BAA4; }
div.lb { position: absolute; bottom: 0px; }
//-->
</style>
</head>
<body>
<div class="lb"><a href="main.html"><img onMouseOver="window.status='- Enter';return true" onMouseOut="window.status='';return true" src="graphics/splash.jpg" border="0" width="279" height="161"></a></div>
</body>
</html>

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
samblakeAuthor Commented:
These are what I'd come up with, and although they work in Mozilla they still leave a small gap at the bottome of IE6. Any ideas anyone? Thanks.

-Sam
Learn SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

seanpowellCommented:
I don't see that gap in IE6, it's flush at the bottom on my system ;-(
Do you have an online version of the page, in case there is any other code there that may be throwing it off?
mattjp88Commented:
try putting bottommargin=0 in your body tag.  that should get rid of the gap.  but now that i look at the CSS, it had margin=0, but its worth a try.
samblakeAuthor Commented:
Yeah, already tried all that. And the code i put in here is the code I used. Maybe just the build I have being wierd or something. Doesn't matter too much. Cheers anyway, people.

-Sam
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.