Results 1 to 2 of 2

Thread: Frameset Width, Height, and Border

  1. #1
    Join Date
    Nov 2009
    Location
    Isfahan, Iran
    Posts
    229
    Thanks
    46
    Thanked 1 Time in 1 Post

    Default Frameset Width, Height, and Border

    Hi everyone,

    How can I set a fixed width and height for the whole frameset:

    Code:
    <html>
    
    <frameset cols="25%,50%,25%">
    
      <frame src="http://www.w3schools.com/html/frame_a.htm">
      <frame src="http://www.w3schools.com/html/frame_b.htm">
      <frame src="http://www.w3schools.com/html/frame_c.htm">
    
    </frameset>
    
    </html>
    I'd like the frameset to be just 400 x 200 px. But when I insert the above code it covers my whole webpage.
    Also I'd like to put a border around the frameset.


    Your help is really appreciated!

    Regards
    Rain Lover

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You would have to put another page on top of it and view it through an iframe. Say the frameset page in your post is called frames.htm, then you could have another page:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    
    </head>
    <body>
    <iframe src="frames.htm" width="400" height="200" scrolling="auto" frameborder="1"></iframe>
    </body>
    </html>
    to view it through.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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