Frame page - size and center in browser?

  • Thread starter Thread starter Eva_S
  • Start date Start date
E

Eva_S

Hi,

Is it possible to make a frame page (with 3 frames) and then determine that
I want it to have a width of 800 px and be horizontally centered in the
browser? I don't know how to do scripts or VB, so it would be great if it is
just a bit of code to add perhaps?

Thanks for any help!
 
Eva_S said:
Hi,

Is it possible to make a frame page (with 3 frames) and then determine that
I want it to have a width of 800 px and be horizontally centered in the
browser? I don't know how to do scripts or VB, so it would be great if it is
just a bit of code to add perhaps?

Thanks for any help!


Place the frames in a main div, and then center the div using CSS by setting the margins to auto.

<style type="text/css">
..my div{
width: 800px;
margins: auto;
}
</style>

<div class="mydiv">
frames here
</div
 
<!--- #1 Frames no good for FrontPage --->

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3c.org/TR/1999/REC-html401-19991224/frameset.dtd">
<HTML>
<HEAD>
<TITLE>Page title</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.6000.16939" name=GENERATOR>
</HEAD>
<FRAMESET rows=20%,80%>
<FRAME name=Banner borderColor=#050000 src="Banner.htm" frameBorder=2>
<FRAMESET cols=22%,789>
<FRAME name=menu borderColor=#050000 src="menu.html" frameBorder=2>
<FRAME name=main borderColor=#050000 src="main.html" frameBorder="">
</FRAMESET>
</FRAMESET>
</HTML>

<!--- #2 IFRAMES and TABLES works good in FrontPage Remember to Target
the frame name exp....... <A HREF=http://me.htm target=main>me</a> --->

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.6000.16939" name=GENERATOR></HEAD>
<BODY>
<TABLE width="100%" summary="" border=0>
<TBODY>
<TR>
<TD width="100%">
<IFRAME style="WIDTH: 987px; HEIGHT: 124px" name=Banner
src="Banner.htm"></IFRAME>
</TD></TR></TBODY></TABLE>
<TABLE width="100%" summary="" border=0>
<TBODY>
<TR>
<TD width="50%">
<IFRAME style="WIDTH: 241px; HEIGHT: 505px" name=Manu
src="Manu.htm"></IFRAME>
</TD>
<TD width="50%"><IFRAME style="WIDTH: 735px; HEIGHT: 501px" name=Main
src="Main.htm"></IFRAME>
</TD></TR></TBODY></TABLE>
</BODY>
</HTML>
 
Back
Top