Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

using frames - HELP

Apr 12, 2008 11:21AM PDT

I have a site where I have 3 frames: the header, links sidebar, and the main page. I also have a gradient spread out amongst the frames. If I change the screen res or the size of my browser window the frames go over each other and mess up the gradient. Is there a way to keep the frames in place for any res or window size. I am using Mircosoft Expression Web and am NOT an avid html coder.

Any assistance is great!!
Thanks.

Discussion is locked

- Collapse -
In the frameset
Apr 13, 2008 8:37AM PDT

you can define the width/height.

<frameset framespacing="0" border="0" frameborder="0" rows="115,76,62%,40">

This is an example of a frame page with just horizontal frames and the numbers are in pixel in order of frame appearance.

Here you can learn more about giving them a certain width.
http://www.w3schools.com/HTML/html_frames.asp

Also, unless you put all your frames in a frame, there has to be something that expands and contracts. As you can see in the first example, one of the frames is a percentage whereas the others are fixed pixels.

~Sovereign

- Collapse -
reply
Apr 13, 2008 8:47AM PDT

Sovereign,

Thanks for the advice, but just before I checked back, I redid the layout and made the page but put 3 inline frames on the page. So now the background stays constant and I just had to change the frame background a little.

Thanks.