Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getting the picture to display right at the edge of screen

Status
Not open for further replies.

mark01

Technical User
Jan 17, 2001
600
US
Does anyone know how to get a picture to display at the top left of the screen, without any space between the picture and the browser???
 
assuming it is the only thing there - like no cellpadding or anything - then adjust the margin -left/right/top style properties of the page. This will ofcourse affect everything else - so you could try it on the img tag.

But you have to get rid of the margin belonging to the body too - to get that close.


b2 - benbiddington@surf4nix.com
 
You have to use <body> properties:

topmargin=0 leftmargin=0 for IE
marginwidth=0 marginheight=0 for NN

for cross-browser compatibility add all of them :
<body topmargin=0 leftmargin=0 marginwidth=0 marginheight=0>

Short as simple!

andrew | starway@mail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top