Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Frame width

  1. #1
    New Coder
    Join Date
    Jan 2005
    Posts
    94
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Frame width

    a firend of mine asked me to make some changes to her layout, she is using frames *groan*

    Anyway, she wants to give a set width to each frame and then center it in the middle of the page (like a table-based layout)... is this possible with frames?

    I have set the second frameset (which contains the "body" and the "navibar") to cols="570,180", but instead of doing that, it sets the "body" part and streches the "navibar" part.

    This is the page, from what I have:

    Code:
    <frameset rows="225,*" border=0 frameborder=0 framespacing=0 >
    
    <frame src="top.html" NAME="top" scrolling=no noresize >
    
    <frameset cols="570,180" border=0 frameborder=0 framespacing=0 >
    
    <frame src="mainhome.html" NAME="left" border=0>
    
    <frame src="right.html" NAME="right" scrolling=no noresize >
    
    </frameset>
    
    </frameset>

  • #2
    New Coder
    Join Date
    Dec 2004
    Posts
    81
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try the following. If thats not wht you want, I would suggest using a table with Iframes.
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
            "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    	<title>Untitled</title>
    	<meta name="generator" content="BBEdit 8.5" />
    </head>
    <frameset rows="225,*" border=1 frameborder=0 framespacing=0 >
    
    <frame src="http://www.msn.com" NAME="top" scrolling=no noresize >
    
    <frameset cols="150,150" border=0 frameborder=0 framespacing=0 >
    
    <frame src="http://www.cnn.com" NAME="left" border=0>
    
    <frame src="http://www.google.com" NAME="right" scrolling=no noresize >
    
    </frameset>
    
    </frameset>
    </html>


  •  

    Posting Permissions

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