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

Centering Html in 760x420 window in monitor window!

Status
Not open for further replies.

loopsta

MIS
Nov 16, 2001
47
US
I want to have the html pop up from my home page in the centre of any browser window no matter what soze the monitor I want the window size to be 760x420, i'm new to all this so please if anyone has any solutions can u tell me as if I was a complete idiot where to put the code, as the new window will open at this size but instaed of it going to the top corners I want it to centre.
Thanks for any advice
 
The following was posted my "missplume" on a previous thread and I think it will solve your problem. forgive me MissPlume for posting your words... :D

***

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>
 
I did try that one but because I have my table split into seperate cells when the user resizes the window say to a smaller size than 760x420 the images all pile up on top of one another, I guess its fine for one static image, but not multiples.
I guess what I'm trying to say is I want my new window to open in the centre of any monitor size!!!!!!!
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top