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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Keeping an image in the centre of a browser window.

Status
Not open for further replies.

tittle

IS-IT--Management
Feb 7, 2002
3
US
Should be easy - but I'm new to Dreamweaver so I need some help. All I need is for an image to be dead centre of the browser window regardless of the window's size.

Thanks.
 
Hi
Using tables measuring 100% by 100% and centering the image will do the trick.
Here is the code to a sample page


<html>
<head>
<title>Untitled Document</title>

</head>

<body bgcolor=&quot;#FFFFFF&quot; text=&quot;#000000&quot; leftmargin=&quot;0&quot; topmargin=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot;>
<table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; height=&quot;100%&quot;>
<tr>
<td align=&quot;center&quot; valign=&quot;middle&quot;><img src=&quot;pix/bouquet1331186.gif&quot; width=&quot;32&quot; height=&quot;32&quot; alt=&quot;I am really centered!!&quot;></td>
</tr>
</table>
</body>
</html>
 
That's great missplume.

Thanks for your help. I really appreciate it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top