|
|
Post a Project »
Find a Professional HTML Freelancer!
Find a Freelancer to help you with your HTML projects
| |
|
 |
|
|
07-08-2005, 05:42 AM
|
Stop resizable TopFrame
|
Posts: 148
|
Hey guys,
Im currently doing frames and i have one leftFrame, mainFrame and one topFrame, top and nested left frames. Basically, when i do some resizing of the browser, my topFrame gets resized. And i do not want that, i have added in "noresize" but still will not work.
Is there any other way i can stop the topFrame from resizing when i resize the browser? Thanks in advance.
|
|
|
|
07-08-2005, 05:56 AM
|
|
Posts: 159
Location: Skegness, Lincolnshire, England
|
The way I found to do this was to have two excess frames, one to the right and one at the bottom, and set both of these to 100%. For example:
Code:
<frameset rows="600,100%" framespacing="0">
<frameset cols="100,900,100%">
<frame name="left" src="frames/left.html" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
<frameset rows="100,400,100">
<frame name="top" src="frames/top.html" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
<frameset cols="800,100">
<frame src="main.html" name="main" frameborder="0" scrolling="Auto" noresize marginwidth="0" marginheight="0">
<frame name="right" src="frames/right.html" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
</frameset>
<frame name="btm" src="frames/btm.html" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
</frameset>
<frame name="right_xs" src="frames/right_xs.html" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
</frameset>
<frame name="btm_xs" src="frames/btm_xs.html" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
</frameset>
The last two frames (right_xs and btm_xs) are the two extra frames used to pad the frameset.
|
|
|
|
07-08-2005, 06:29 AM
|
|
Posts: 148
|
Hi,
What you mentioned sounds all so complicated, i dont understand how to do it. Below is the html coding for my frames:
<frameset rows="100,*" cols="*" frameborder="NO" border="0" framespacing="0">
<frame src="navi_top.html" name="topFrame" scrolling="NO" noresize>
<frameset cols="232,*" frameborder="NO" border="0" framespacing="0">
<frame src="navi_left%20(no%20dropdown).html" name="leftFrame" scrolling="NO" noresize>
<frame src="home.html" name="mainFrame" scrolling="yes">
</frameset>
</frameset>
Maybe you can help me out by editing the coding and add in the extra 2 frames to pad the frameset. That will be so much easier for me. Thanks a million.
|
|
|
|
07-08-2005, 06:48 AM
|
|
Posts: 159
Location: Skegness, Lincolnshire, England
|
This should do it for you:
Code:
<!-- frames -->
<frameset rows="800,*" framespacing="0" frameborder="0">
<frameset cols="800,*" framespacing="0" frameborder="0">
<frameset rows="100,*" framespacing="0" frameborder="0">
<frame name="topFrame" src="navi_top.html" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
<frameset cols="232,*">
<frame name="leftFrame" src="navi_left%20(no%20dropdown).html" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
<frame name="mainFrame" src="home.html" marginwidth="0" marginheight="0" scrolling="yes" frameborder="0" noresize>
</frameset>
</frameset>
<frame name="right_xs" src="" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
</frameset>
<frame name="btm_xs" src="" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
</frameset>
Hope that helps. If you need anything more, please give me a shout
PS: You only need to put sources in the right_xs and btm_xs frames if you want to change background colour etc., otherwise you can leave them blank.
|
|
|
|
07-08-2005, 07:21 AM
|
|
Posts: 148
|
I just like to ask for right_xs and btm_xs frames, i just add in nothing? Add in an empty html file?
|
|
|
|
07-08-2005, 07:49 AM
|
|
Posts: 159
Location: Skegness, Lincolnshire, England
|
You can leave them blank as I have, or you can point them to blank pages - the choice is yours. Blank pages do give you the option to make changes to these if you want, for example, the background colour of your main frameset to be the same as the rest of the browser, in which case these blank pages (and they both point to the same blank btw) would simply have to have the background colour of the body tag modified.
|
|
|
|
07-08-2005, 08:19 AM
|
|
Posts: 148
|
When i copy and paste the code you edited above, the mainFrame and topFrame does not fill the whole browser. I like the mainFrame and topFrame to be a 100% but for the leftFrame to be of a certain width like 232 pixels in this case.
And of course, leftFrame and topFrame has to be non-resizable. When i resize the browser, the topFrame still does resize according to the browser size and i do not want that. I want the topFrame to be like the leftFrame, where no matter how we adjust the browser it does not resize. But the mainFrame has to be resizable. You know what i mean?
|
|
|
|
07-08-2005, 08:23 AM
|
|
Posts: 159
Location: Skegness, Lincolnshire, England
|
I do yes, but then you can't use 100% as this is not a static measurement. The only way you can make frames static and non-resizeable with movement resizes is to make the frame a static width. If your browser is 800 pixels wide then 100% will be 800. If it's 1200 wide, then the frame will resize to 1200.
|
|
|
|
07-08-2005, 08:32 AM
|
|
Posts: 148
|
Basically, i want my web page to look like this web page:
http://www.itee.uq.edu.au/~elec4600/
This web page no matter how i resize it, the topFrame and leftFrame will not be resizable but yet the mainFrame adjusts its size according to the user's browser size. Do you know how to do that?
|
|
|
|
07-08-2005, 07:38 PM
|
|
Posts: 159
Location: Skegness, Lincolnshire, England
|
Well I looked at the page and the top frame does not remain static as testified by the image dropping down when you resize the browser. I have pasted the page source for that page:
Quote:
<frameset rows="75,*" framespacing="0" border="0" frameborder="0">
<frame name="banner" scrolling="no" noresize target="contents" src="banner.htm">
<frameset cols="182,*">
<frame name="contents" target="main" src="topic_index.html" scrolling="no" noresize>
<frame name="main" src="main.html" scrolling="auto">
</frameset>
<noframes>
<body>
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
</noframes>
</frameset>
|
This is basically a standard frameset, but I do assure you, the top frame in this is NOT static.
|
|
|
|
07-09-2005, 01:17 AM
|
|
Posts: 1,611
Name: Michael (mik) Land
Location: England
|
What is it with people and frames? They should be banned by the W3C.
Anyway, iframes are like frames but can be placed anywhere on the page and can interact in a much more fluent way than frames. You DO NOT need to use frames in most designs, infact it is incouraged that you never use it. A good time to use frames would be for making an Admin or Moderator CP. The rest, keep it simple and no frames.
__________________
Please login or register to view this content. Registration is FREE - Tumblog with thoughts, quotes, links, videos, images and my creations.
Please login or register to view this content. Registration is FREE - The best free web browser.
Please login or register to view this content. Registration is FREE - Firefox is now Firefail.
|
|
|
|
07-09-2005, 06:09 AM
|
|
Posts: 159
Location: Skegness, Lincolnshire, England
|
I agree totally Twitch, I never use frames - then again I never use iframes either. I much prefer to use simple, clean and efficient methods. However, I can still see some instances where they might be of use and, of course, when I first started out coding, I used them myself, and still get asked on occasion to use them for other people.
|
|
|
|
|
« Reply to Stop resizable TopFrame
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|