Wrox Programmer Forums
|
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
 
Old May 11th, 2005, 10:04 PM
Authorized User
 
Join Date: May 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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

 
Old May 12th, 2005, 11:55 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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.
 
Old May 12th, 2005, 04:11 PM
Authorized User
 
Join Date: May 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry mate, it was late when i posted that... i do mean FRAMES, not layers....


 
Old May 12th, 2005, 04:14 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
quote:Originally posted by ImarCan you post the relevant code? Or better yet, link to an on-line example?
 
Old May 12th, 2005, 04:51 PM
Authorized User
 
Join Date: May 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

 
Old May 12th, 2005, 05:05 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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?





Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML 4.0 vs. XHTML 1.0 and font sizes Ron Howerton HTML Code Clinic 4 October 14th, 2008 07:05 AM
font sizes in multiselect list mat41 CSS Cascading Style Sheets 2 June 3rd, 2007 06:30 PM
Buttons of different sizes needed in the toolbar Jell General .NET 8 May 3rd, 2005 08:48 AM
Dreamweaver Screen Sizes Cptnspeed Dreamweaver (all versions) 9 February 27th, 2005 08:29 AM
Spreadsheet Export Sizes rweide Classic ASP Basics 0 February 25th, 2005 03:51 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.