Solved

Frame resizing

Posted on 2003-11-02
5
332 Views
Last Modified: 2010-04-25
Hi there again,

I have a frameset with three columns and the cent one having two rows. here is the code:

<frameset rows="*" cols="*,*" framespacing="0" frameborder="NO" border="0">
  <frameset cols="189,*" frameborder="NO" border="0" framespacing="0">
    <frame src="left.html" name="leftFrame" scrolling="NO" noresize>
    <frameset rows="111,*" frameborder="NO" border="0" framespacing="0">
            <frame src="header.html" name="topFrame" scrolling="NO" noresize>
            <frame src="main.html" name="mainFrame">
      </frameset>
  </frameset>
  <frame src="right.html" name="rightFrame" scrolling="NO" noresize>
</frameset>

The first column is a fixed size (189px), the next two columns resize when the window is resized like i want but is there a way for me to make the frames only resize from a certian point. Like the frame can never get smaller than say 250pixels but can get bigger? If so could someone show me the code to do it ?!

Thanks
Nugs
0
Comment
Question by:Nugs
  • 2
  • 2
5 Comments
 
LVL 8

Expert Comment

by:klykken
ID: 9679808
Is it the 2nd column that needs a minimum width of 250px?

-klykken
0
 
LVL 2

Author Comment

by:Nugs
ID: 9681703
Yeah, minumum of 250px but expandable. And the third, exapandable too with no minimum size.

Nugs
0
 
LVL 19

Expert Comment

by:webwoman
ID: 9694919
No. Frames resize to the window. You can set the frame attribute to noresize, but that means it won't resize AT ALL.

Sounds like you'd be better off with tables instead of frames.
0
 
LVL 8

Accepted Solution

by:
klykken earned 50 total points
ID: 9695006
In theory you should be able to do this with javascript, something along the lines of (this code is probably not even valid):

function checkSize()
      {      rightWidth = rightFrame.document.body.scrollWidth;
            mainWidth = topFrame.document.body.scrollWidth;
                  if (mainWidth < 250)
            { mainWidth = 250; mainFrameset.cols = '189,250,*'; }
          else if (rightWidth  > 212)
            {      innerFrameSet.cols = '189,*,212'; }
      }

So Dreamweaver cannot do this for you because there is nothing in HTML that will work. CSS has a property called min-width, but it's not even close to being supported by the majority of browsers, and I'm not sure if would work on a <frame> anyhow.

I ask a question in the Javascript section here at EE, and find out how to dynamically change the framesize.

Good Luck!

-klykken
0
 
LVL 2

Author Comment

by:Nugs
ID: 9703354
No worries guys i can live without this. Thanks for the advice though.

Nugs
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
CSS HTML Text Alignment 13 425
Question about Dreamweaver CC 1 306
Jquery submit form question 11 103
CS6 Adobe Dreamweaver Alphanumeric list 4 99
For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question