• 0

How can i center my website?


Question

I want to know how to center my websites layout. I just have a small table that is positioned to the left. Is there a code that can auto center my site for different resolutions? The link is in the sig.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
I want to know how to center my websites layout. I just have a small table that is positioned to the left. Is there a code that can auto center my site for different resolutions? The link is in the sig.

Align the table as 'center'

------------------------------------

<html>

<head>

<title>Luke's World</title>

<STYLE type="text/css">

BODY

{scrollbar-face-color: #FFFFFF; scrollbar-shadow-color: #000000;

scrollbar-highlight-color: #9C9C9C; scrollbar-3dlight-color: #FFFFFF;

scrollbar-darkshadow-color: #FFFFFF; scrollbar-track-color: #ECECEC;

scrollbar-arrow-color: #000000}

</STYLE>

</head>

<body>

<div align="center">

<center>

<table bgcolor=#F1F1F1 border="1" bordercolor="#000000" cellpadding=0 cellspacing=0>

<tr><img src="topbanner2.gif"></tr>

<tr><td valign=top><!-- Beginning of CSIM -->

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"

codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"

id="Map" width="150" height="350">

<param name="movie" value="Map.swf">

<param name="quality" value="high">

<param name="bgcolor" value="#FFFFFF">

<embed name="Map" src="Map.swf" quality="high" bgcolor="#FFFFFF"

width="150" height="350"

type="application/x-shockwave-flash"

pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">

</embed>

</object>

<br />

</td><td><iframe src="home.html" frameborder="0" height="500" width="500" name="frame" align=center scrolling="yes" noresize></iframe>

</td>

</tr>

</table>

</center>

</div>

</body>

</html>

Link to comment
Share on other sites

This topic is now closed to further replies.