align an image in the absolute top left corner

Posted on 2002-03-13
Last Modified: 2010-04-09
Does any one know how I can postion my graphic in the top left corner of my html page with no padding or spaces. I need this to work in netscape and ie

Question by:ablogan
  • 2
LVL 53

Accepted Solution

COBOLdinosaur earned 100 total points
ID: 6861535
<div id="theid" style="position:absolute;top:0;left:0;margin:0;padding:0">
   <img src="yourimge.jpg" border="0">

You probably need to style the body as well with:

<body style="margin:0">


Author Comment

ID: 6861600
Worked perrrfect. Thank you very much

LVL 53

Expert Comment

ID: 6862268
Glad I could help.  thanks for the A. :^)


Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now