www.webdeveloper.com
Results 1 to 10 of 10

Thread: frames

  1. #1
    Join Date
    Dec 2002
    Posts
    14

    frames

    i made some frames on my website, and i used the % of page to size them, the problem i'm seeing is that when i have a different pixel setting on my monitor my control bar is getting cut off.

    how do i code the frames with exact pixels for the first column, but general size for the rest, so that the last column, which is empty space will be the only thing that changes depending on the monitor setting?

    thanks

  2. #2
    Join Date
    Nov 2002
    Location
    NY, USA
    Posts
    731
    Use a * to divide up the ramaining space.

    cols="200,*"

  3. #3
    Join Date
    Dec 2002
    Posts
    14
    and the 200 is pixels?

  4. #4
    Join Date
    Nov 2002
    Posts
    421
    yes the 200 is px.

    you should also specify noresize if you want to keep the frame at 200px.

  5. #5
    Join Date
    Dec 2002
    Posts
    14
    how do i do that?

    and if im telling it 200 px why would it resize?

  6. #6
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Here is an example...

    <frame name="test" src="test.htm" noresize="noresize"></frame>

    You would use it if you don't want your users to resize the frame on you.

  7. #7
    Join Date
    Dec 2002
    Posts
    14
    oh great, i was gonna write a post for that before. my site works in explorer but not netscape, netscape just shos the left frame and opens the link in a new window, any idea why?

    http://www.querinrecords.com/querin.html

    this is the address, its still very much under construction.

  8. #8
    Join Date
    Nov 2002
    Posts
    984
    Originally posted by ptherin
    my site works in explorer but not netscape, netscape just shos the left frame and opens the link in a new window, any idea why?
    Becuse your code is broken. Eg you got your <noframes> section outside your <frameset> and are missing important things like doctype and charencoding.

    It should look something like this

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/frameset.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title></title>
    </head>
    <frameset cols="100, 1*" border="0"> <!-- border="0" is a bugfix for IE, NS as well as Opera -->
    <frame name="nav" src="nav.html" frameborder="0" marginwidth="1" marginheight="1" scrolling="auto">
    <frame name="main" src="home.html" frameborder="0" marginwidth="1" marginheight="1" scrolling="auto">
    <noframes>
    <body>
    <p>
    Frames are not working in your Browser.<br>
    If you have Frames turned off, please turn it on to view this site.
    </p>
    </body>
    </noframes>
    </frameset>
    </html>
    Last edited by Stefan; 12-30-2002 at 07:42 PM.

  9. #9
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Try this frameset...
    Code:
    <frameset cols="19.8%,75%,*" framespacing="0" frameborder="NO" border="0">
      <frame src="leftside.html" name="leftside" scrolling="NO" noresize="noresize" marginewidth="3" marginheight="10">
      <frameset rows="80,*" frameborder="NO" border="0" framespacing="0">
        <frame src="topofthepage.html" name="topofthepage" scrolling="NO" noresize="noresize" marginewidth="3" marginheight="10">
        <frame src="rightside" name="rightside" noresize="noresize" marginewidth="3" marginheight="10">
      </frameset>
      <frame src="rightside" name="rightside" scrolling="NO" noresize="noresize" marginewidth="3" marginheight="10">
    </frameset>
    Hope I got all your info right.

  10. #10
    Join Date
    Dec 2002
    Posts
    14
    ok, that worked.

    one more thing,

    do you know why my flash movie doesnt play in netscape,

    the control bar changes colours in ei like i wanted, but not in netscape.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles