Link to home
Start Free TrialLog in
Avatar of modemonkey
modemonkey

asked on

How to set frames for 640x480 screen resolution

My frames work fine if screen resolution in Windows is 1024x768. If I change screen resolution for 640x480, my pages in the frames show as they would be cut. They don't show completly and I set the frames with percentages. What am I missing, please?

<frameset border="0" frameSpacing="0" borderColor="#336699" rows="12%,88%" frameBorder="0">
      <frame name="arriba" scrolling="no" src="banner.html">
      <frameset border="0" frameSpacing="borderColor=#336699" frameBorder="NO" cols="16%,84%">
            <frame name="izquierda" src="menu.htm" noResize scrolling="no">
            <frame name="derecha" src="HTMLPage1.htm">
      </frameset>
      <noframes>
      </noframes>
      <noframes>
Avatar of Andy
Andy
Flag of United Kingdom of Great Britain and Northern Ireland image

You need to set the height of the top frame (rows) and the width of the left frame (cols) with pixels so they will remain a fixed size regardless of your screen resolution.
The rows and cols attributes set the size of the frame, no the size of content page.  If teh content is too large you need to work on the page layout to make them flexible with percentages.  However if you need teh oversized page content, then you need to allow the frames to scroll by getting rid of the scrolling="no"  so that it defaults to auto and give youbars when you need them.

Cd&
Avatar of essage
essage

Try putting these into a fixed table as such:

<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="600" id="AutoNumber1" height="121">
    <tr>
      <td width="100%" height="400">

<frameset border="0" frameSpacing="0" borderColor="#336699" rows="12%,88%" frameBorder="0">
     <frame name="arriba" scrolling="no" src="banner.html">
     <frameset border="0" frameSpacing="borderColor=#336699" frameBorder="NO" cols="16%,84%">
          <frame name="izquierda" src="menu.htm" noResize scrolling="no">
          <frame name="derecha" src="HTMLPage1.htm">
     </frameset>
     <noframes>
     </noframes>
     <noframes>
</td>
</tr>
</table>
That's TOTALLY wrong - you do NOT put framesets inside tables.

Again (to repeat Cd&) if your content is large, it won't fit in the frameset. If you don't have scrollbars, NOBODY will be able to see your content.

Either allow the scrollbars or redesign the content.
ASKER CERTIFIED SOLUTION
Avatar of Andy
Andy
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
webwoman, I have done this with success many times. just giving a possible solution.   Reapz is right, the positions need to be pixal size, not percentage.
No way. It's TOTALLY wrong. Frames have absolutely NOTHING to do with tables. IE might let it slide, but nothing else will. Not only that, you don't close the framesets, and don't use the noframes tags correctly.