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>
HTML

Avatar of undefined
Last Comment
webwoman
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.
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

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>
Avatar of webwoman
webwoman

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

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of essage
essage

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.
Avatar of webwoman
webwoman

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.
HTML
HTML

HTML (HyperText Markup Language) is the main markup language for creating web pages and other information to be displayed in a web browser, providing both the structure and content for what is sent from a web server through the use of tags. The current implementation of the HTML specification is HTML5.

62K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo