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!

Scale to Fit with frames

Status
Not open for further replies.

haasstudios

Technical User
May 17, 2002
10
US
Hi. I am working on a site with a basic frame set up of a top bar (goes all the way across top) a left side navigational frame and a main content frame to the right of the nav frame. I need for the page to scale to fit the browser window (by the way... the top header frame contains a gif that needs to scale as well.) Is there a way to make it scale with the browser window I will have a vertical scroll bar, but no horizontal scrolling
 
if i understand you correctly all you have to do is use percentages instead of fixed pixel width's
eg:

<HTML>
<HEAD>
<TITLE>for haasstudios </TITLE>
<META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=iso-8859-1&quot;>
</HEAD>
<FRAMESET COLS=&quot;80%,*&quot; FRAMEBORDER=&quot;NO&quot; BORDER=&quot;0&quot; FRAMESPACING=&quot;0&quot;>
<FRAME NAME=&quot;leftFrame&quot; SCROLLING=&quot;NO&quot; noresize SRC=&quot;testFrame-2.htm&quot;>
<FRAME NAME=&quot;mainFrame&quot; SRC=&quot;test2.htm&quot;>
</FRAMESET>
<NOFRAMES>
<BODY BGCOLOR=&quot;#FFFFFF&quot; TEXT=&quot;#000000&quot;>
</BODY>
</NOFRAMES>
</HTML>

after checking out the above code you will notice the % therefore the frame size is equal to in this case 80% of the screen size

if this is information overload reply and i'm sure some one else if not myself can simplify it for you.

good luck
Ramsey
helping is pure self gratification...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top