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

how do i center a site which sits in frames

Status
Not open for further replies.

dunskii

Programmer
Sep 14, 2001
107
0
0
AU
hi all,

i have just taken over the dev of a site and am trying to center it, it sits in frames.

this is what i have been given......

<frameset rows="90,*" cols="*" frameborder="NO" border="0" framespacing="0">
<frame name="topFrame" scrolling="NO" noresize src="includes/top.asp" >
<frameset cols="170,*" frameborder="NO" border="0" framespacing="0">
<frame name="leftFrame" noresize scrolling="NO" src="includes/left.asp">
<frame name="mainFrame" src="main.asp">
</frameset>
</frameset>


cheers,

andrew



 
if you wish to center both horizontally and vertically you could add the following to your code:

<table width=100% height=100%>
<tr valign=center><td align=center>

<<< YOUR EXISTING CODE HERE >>>

</td></tr>
</table>

hope this helps...
SP
 
You could use the opportunity to break away from frames altogether...just a suggestion.

Btw "valign" should be "middle" not center.

<!--#sig value=''É'' url='' -->
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top