 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

May 11th, 2005, 10:04 PM
|
|
Authorized User
|
|
Join Date: May 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Frames... and sizes
Hi,
For my site project i wish to use layers, and i am enjoying experimenting at the moment with them.. however, is there any way at all, that i can stop them resizing when you adjust the browser window manually???
I thought it would be something to do with the 'resize' option, but it wasnt. I find that when i have created my frameset, which leaves the middle of the screen as the main viewable area, because the framset acts as a box around the main centre one, that when i resize the browser, the main centre page reduces so tiny... it looks odd. There must be a global command to turn this odd??
I would apreciate any help
Thanks
Steve
|
|

May 12th, 2005, 11:55 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi Steve,
When you say layers, are you referring to <div> tags, <ilayer (yak)> tags or <frameset>s?
Can you post the relevant code? Or better yet, link to an on-line example?
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
|

May 12th, 2005, 04:11 PM
|
|
Authorized User
|
|
Join Date: May 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Sorry mate, it was late when i posted that... i do mean FRAMES, not layers....
|
|

May 12th, 2005, 04:14 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Quote:
|
quote:Originally posted by ImarCan you post the relevant code? Or better yet, link to an on-line example?
|
|
|

May 12th, 2005, 04:51 PM
|
|
Authorized User
|
|
Join Date: May 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi Imar,
The problem i have is that my server is down.. so i cant just give you a link. Below is the code used to generate the frameset.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<frameset rows="*,405" cols="*" framespacing="0" frameborder="no" border="0">
<frame src="JS_index_4.htm" name="mainFrame" scrolling="no" noresize>
<frameset rows="*" cols="*,202" framespacing="0" frameborder="yes" border="0">
<frameset rows="*" cols="201,*" framespacing="0" frameborder="no" border="0">
<frame src="JS_index_3.htm" name="leftFrame" scrolling="NO" noresize>
<frameset rows="*,80" frameborder="NO" border="0" framespacing="0">
<frame src="JS_index_2.htm" name="bottomFrame" scrolling="yes" noresize>
<frame src="JS_index_5.htm" name="bottomFrame1" scrolling="NO" noresize>
</frameset>
</frameset>
<frameset cols="*,80" frameborder="NO" border="0" framespacing="0">
<frame src="JS_index_1.htm" name="rightFrame" scrolling="NO" noresize>
<frame src="JS_index_6.htm" name="rightFrame1" scrolling="NO" noresize>
</frameset>
</frameset>
</frameset>
<noframes><body>
</body></noframes>
</html>
When i am reducing the size of the browser the centre frame, just goes so tiny it looks silly.
I just experimented using iframes.. but the problem here lies, that as well as having a scroll bar on the iframe, there is also one on the main browser one too.. is thee a way of turning the main browser scroll bar off, when the window is scrolled, as iframes may be the better alternative
Thanks for your help
Steve
|
|

May 12th, 2005, 05:05 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
It all depends on what you want to accomplish. From your example, I can't really see what you're trying to do. All I see is a white browser window with a floating scroll bar somewhere.
Anyway, do you really need frames? Frames are more and more considered a "bad practice" in web development. Although they have their uses, there are many circumstances where they can be avoided and replaced with a clean CSS based layout, possibly in combination with server side includes to avoid duplication of repeating code.
Frames, by default will take up 100% of the available space, so there isn't much to be done about resizing. However, instead of specifying relative values (*) you can specify explicit values like 1000 in all dimensions. That will cause the browser to display scroll bars when the window gets resized.
Once your server is up again, post a message on this thread and I'll have a look. Maybe a live example works better....
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Wave Of Mutilation by Pixies (Track 3 from the album: Doolittle) What's This?
|
|
 |