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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resizing frames

Status
Not open for further replies.

naiku

Technical User
Apr 25, 2002
346
US
How can I prevent the top and bottom frames of my frameset from resizing? (I have top middle and bottom frame) I thought I knew how to but when I view at lower resolutions parts of the top and bottom are cut off.

Anyone tell me what I have missed out/overlooked? Thanks

Naiku
 
Hi Naiku,

<frame noresize src=&quot;yourFile.htm&quot; name=&quot;main&quot; .... >

Hope this helps,
Erik <!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (!! Many Happy Returns !! -->
 
that will prevent the user from resizing your frames. i have a feeling your talking about when differant resolutions view your site there is a differance in frame size. for this, use absolute pixel values, rather then %. like:

<frameset rows=&quot;100px,*&quot; ...
 
Thanks for the replys, I am talking about the different resolutions viewing the site. Weird thing is though I thought I had already set the absolute pixel value and when I looked at the code I have set it. The code I am using should be below....

Code:
<frameset rows=&quot;110px,*&quot; cols=&quot;*&quot;> 
  <frame src=&quot;top.html&quot; name=&quot;Top&quot; scrolling=&quot;NO&quot; frameborder=&quot;NO&quot; noresize>
  <frameset rows=&quot;*,80px&quot; cols=&quot;*&quot;> 
    <frame src=&quot;center.html&quot; name=&quot;Content&quot; frameborder=&quot;NO&quot; bordercolor=&quot;#00BFFF&quot;>
    <frame src=&quot;bottom.html&quot; name=&quot;Bottom&quot; scrolling=&quot;NO&quot; frameborder=&quot;NO&quot; noresize>
  </frameset>
</frameset>
<noframes>

Any ideas?

Thanks again guys
 
Ok I just fixed it, I did not have px after my absolute pixel sizes (I know the code above has them, I added them and then posted the above before checking again!)

I did not know that leaving px out would make the difference!! well we live and learn!

Thanks again :)

Naiku
 
Damnit!! *bangs my head on the desk* Ok I still need help!! when I view at 800*600 half my top and bottom frames are still cut off. The URL is unless you can tell me whats missing from my previously posted code...

Naiku
 
oops sorry. Must read more carefully.

I'm not sure (don't have time to test your site) but try some of the attribute here below. Do try some different combinations. (is in some old code of mine)

<frameset framespacing=&quot;0&quot; frameborder=&quot;0&quot; border=&quot;false&quot; ....

and

<frame marginwidth=&quot;1&quot; marginheight=&quot;1&quot; ..

Erik <!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (!! Many Happy Returns !! -->
 
ok, i just tested your site in mutiple resolutions, and it seems to be doing exactly what you want it to... what exactly is the problem?
 
Depending on what time you tested it nothing :) There was something wrong with my center frame. Can't remember exactly but it should be ok now and from your response it is.

Thanks for taking the time to look.

Naiku
 
ever think of using an i frame...it makes life easier and you can have everything on one page
[afro] sometimes i just cant take it...then i realize its already to late
 
This may sound stupid but whats an i frame? and how do I use one?
 
<iframe src=&quot;blah.html&quot;>text for browsers that don't supory iframes (anything other then IE)</iframe>

it stands for inline frame. it works just like a frame, but you can implant in right in the middle of another html page.
 
Ok I think I got it, I have mocked up a page using the iframe. Seems like a good idea, I just have a couple of questions though.

On my current page the top frame is (if I remember) 110px and the bottom is something like 80px. Can I still achieve this with the iframe? Also my current site (should) works fine if viewed at both 1024*768 and at 800*600 (with almost no horizontal scrolling) using iframes it looks like I can't do this as on 800*600 I have lots of horizontal scrolling. If I were to use an iframe would I then have to redesign my pages to fit 800*600? and then center them in the iframe so that when viewed at higher resolutions it would still look ok?

Hope that makes sense, thanks for all the input.

Naiku
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top