Log in

View Full Version : Frames Fixed Width Size -- Help



andy8828
07-18-2008, 12:42 AM
Hello,

I am working on a web site and it has 5 frames. I want to make the left and right frames to be a fixed width size. For example, the width is 125.

But when I change the size of the IE window the left and right frames also change. So, Can someone tell me how chagen the FRAMESET elements?

Here is the web site's URL: http://www.uswebcity.com/temp/frames/

Here is the html code:
<html>
<head>
<title>New Frames Website</title>
</head>

<frameset rows="60,*,30" border="0" frameborder="0">
<frame name="top1" frameborder='0' framespacing='0' scrolling="no"
noresize="noresize" target="contents" src="top.html">

<frameset cols="125,710,125">
<frame name="lc-window" frameborder='0' framespacing='0' scrolling="no" resize="no"
target="main" src="left.html">

<frameset rows="28,*">
<frame name="l-window" frameborder='0' framespacing='0' scrolling="no" resize="no"
noresize="noresize" target="main" src="menu.html">

<frame name="r-window" frameborder='0' framespacing='0' src="main.html">

</frameset>
<frame name="right-contents" frameborder='0' framespacing='0' resize="no"
scrolling="no" noresize="noresize" target="main" src="right.html">
</frameset>

<frame name="bottom" frameborder='0' framespacing='0' scrolling="no" noresize
target="main" src="bottom.html">

<noframes>
<body>
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
</noframes>

</frameset>
</html>


Thanks.

www.USWebCity.com

Jesdisciple
07-18-2008, 04:16 PM
Try this for the second FRAMESET opener:
<frameset cols="125,*,125">(I'm guessing that the window will try to keep the ratio between the columns when it's resized. The asterisk should make the window not care about the middle column's ratio.)

andy8828
07-18-2008, 05:57 PM
Thank you. After the changing(<frameset cols="125,*,125">), it works fine now. :)