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.
Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    New to the CF scene
    Join Date
    Oct 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Complex Frameset Question

    Hello,

    I'm trying to code the following frameset:

    <frameset rows="15%, 85%">

    On the top row, I want two cols of 30% and 70%.

    On the bottom row, I want two cols of 10% and 90%.

    I can get the same cols across both pages, but I'm having trouble getting different dimensions of cols between the top row and the bottom row.

    Any help would be greatly appreciated. Thanks.

    mhumm2

  • #2
    Regular Coder Nerevarine's Avatar
    Join Date
    Jan 2013
    Location
    Phendrana Drifts, Tallon IV, W-Class
    Posts
    285
    Thanks
    0
    Thanked 17 Times in 17 Posts
    Blog Entries
    3
    We need code or a link to your website in order to help you.
    Time kills us in our sleep and we watch it happen in our dreams. -K.K.
    THE END-ALL PROGRAMMING REFERENCE: CLICK HERE (Courtesy of Major Payne)
    My username was previously L0adOpt1c. :: Please read this before posting in the HTML/CSS forum.
    Validate your HTML here and your CSS here. :: Need basic HTML/CSS tutorials? Click here, don't post about it.

  • #3
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,038
    Thanks
    23
    Thanked 589 Times in 588 Posts
    <frameset> may not be obsolete, but they are not supported in HTML5 so they may soon be. IMHO, they should be banned and the people that use them, whipped. Even when they where the only way to program a web page, they had problems.

    It is a far easier and better thing to use divs for the site layout then frames. I do not understand what you mean by top ROW or bottom row.

    To help you from committing programming sin:
    Code:
    <!DOCTYPE html>
    <html>
    <head>
    <title>Title of the document</title>
    <style type="text/css">
    #left{
    	height: 300px;
    	width: 15%;
    	float:left;
    	background-color: #99FF33;
    }
    #right{
    	height: 300px;
    	width: 85%;
    	float:left;
    	background-color: #00FF99;
    }
    #colleft1{
    	height: 300px;
    	width: 30%;
    	float:left;
    	background-color: #FFFF00;
    }
    #colleft2{
    	height: 300px;
    	width: 70%;
    	float:left;
    	background-color: pink;
    }
    #colright1{
    	height: 300px;
    	width: 10%;
    	float:left;
    	background-color: #CC66CC;
    }
    #colright2{
    	height: 300px;
    	width: 90%;
    	float:left;
    	background-color: #660000;
    }
    </style>
    </head>
    
    <body>
    
    <div id="left">
    	<div id="colleft1"></div>
    	<div id="colleft2"></div>
    </div>
    <div id="right">
    	<div id="colright1"></div>
    	<div id="colright2"></div>
    </div>
    </body>
    If you really want frames post the code you have so far and maybe a picture of what you want.
    Last edited by sunfighter; 10-10-2013 at 02:47 PM.
    Evolution - The non-random survival of random variants.

  • #4
    Regular Coder Nerevarine's Avatar
    Join Date
    Jan 2013
    Location
    Phendrana Drifts, Tallon IV, W-Class
    Posts
    285
    Thanks
    0
    Thanked 17 Times in 17 Posts
    Blog Entries
    3
    Everything that sunfighter just said. Frames + Framesets = a big bucket of NO.
    Time kills us in our sleep and we watch it happen in our dreams. -K.K.
    THE END-ALL PROGRAMMING REFERENCE: CLICK HERE (Courtesy of Major Payne)
    My username was previously L0adOpt1c. :: Please read this before posting in the HTML/CSS forum.
    Validate your HTML here and your CSS here. :: Need basic HTML/CSS tutorials? Click here, don't post about it.

  • #5
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,038
    Thanks
    23
    Thanked 589 Times in 588 Posts
    why you say that? There is no reason on the face of the earth to use frameset.
    Last edited by sunfighter; 10-10-2013 at 04:17 PM.
    Evolution - The non-random survival of random variants.

  • #6
    Regular Coder Nerevarine's Avatar
    Join Date
    Jan 2013
    Location
    Phendrana Drifts, Tallon IV, W-Class
    Posts
    285
    Thanks
    0
    Thanked 17 Times in 17 Posts
    Blog Entries
    3
    That is what I'm saying. A big bucket of no for each.
    Time kills us in our sleep and we watch it happen in our dreams. -K.K.
    THE END-ALL PROGRAMMING REFERENCE: CLICK HERE (Courtesy of Major Payne)
    My username was previously L0adOpt1c. :: Please read this before posting in the HTML/CSS forum.
    Validate your HTML here and your CSS here. :: Need basic HTML/CSS tutorials? Click here, don't post about it.

  • #7
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,038
    Thanks
    23
    Thanked 589 Times in 588 Posts
    Real good explanation of your opinion and reasoning. So I'll take what you as gas.
    Evolution - The non-random survival of random variants.

  • #8
    Regular Coder
    Join Date
    Jun 2002
    Location
    Flint, Michigan, USA
    Posts
    620
    Thanks
    1
    Thanked 20 Times in 20 Posts
    Whether or not someone SHOULD use framesets may be an interesting discussion, but you deserve an answer to your question:
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
      <head>    
        <title>Frameset Demo</title>
      </head>
    
      <frameset rows="15%,*" onload="ReFrame();">
        <frameset cols="30%,*">
          <frame src="about:blank"scrolling="auto" />
          <frame src="about:blank"scrolling="auto" />
        </frameset>
        <frameset cols="10%,*">
          <frame src="about:blank"scrolling="auto" />
          <frame src="about:blank"scrolling="auto" />
        </frameset>
      </frameset>
      
    </html>
    I used an asteresk (*) as the second parameter to each of the rows/cols so that it will use up "everything that is left" rather than worry about adding up to 100%.

  • #9
    Regular Coder Nerevarine's Avatar
    Join Date
    Jan 2013
    Location
    Phendrana Drifts, Tallon IV, W-Class
    Posts
    285
    Thanks
    0
    Thanked 17 Times in 17 Posts
    Blog Entries
    3
    Sunfighter: I was saying that I agree with you. You shouldn't use framesets.
    Time kills us in our sleep and we watch it happen in our dreams. -K.K.
    THE END-ALL PROGRAMMING REFERENCE: CLICK HERE (Courtesy of Major Payne)
    My username was previously L0adOpt1c. :: Please read this before posting in the HTML/CSS forum.
    Validate your HTML here and your CSS here. :: Need basic HTML/CSS tutorials? Click here, don't post about it.

  • #10
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,038
    Thanks
    23
    Thanked 589 Times in 588 Posts
    Oh ,
    As Emily Litella once said; Never mind.

    Sorry
    Evolution - The non-random survival of random variants.

  • #11
    Regular Coder Nerevarine's Avatar
    Join Date
    Jan 2013
    Location
    Phendrana Drifts, Tallon IV, W-Class
    Posts
    285
    Thanks
    0
    Thanked 17 Times in 17 Posts
    Blog Entries
    3
    Haha, no problem. I shoulda been more clear.
    Time kills us in our sleep and we watch it happen in our dreams. -K.K.
    THE END-ALL PROGRAMMING REFERENCE: CLICK HERE (Courtesy of Major Payne)
    My username was previously L0adOpt1c. :: Please read this before posting in the HTML/CSS forum.
    Validate your HTML here and your CSS here. :: Need basic HTML/CSS tutorials? Click here, don't post about it.

  • #12
    Regular Coder
    Join Date
    Jun 2002
    Location
    Flint, Michigan, USA
    Posts
    620
    Thanks
    1
    Thanked 20 Times in 20 Posts
    [QUOTE=sunfighter;1362274]<frameset> may not be obsolete, but they are not supported in HTML5 so they may soon be. IMHO, they should be banned and the people that use them, whipped.[/CODE]

    Everyone seems to want to kill framesets, but it took you 55 lines of code to do 19 lines of work. Hmmm.

  • #13
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,038
    Thanks
    23
    Thanked 589 Times in 588 Posts
    Your point is?

    Oh, if I have to type a lot it's wrong?
    Evolution - The non-random survival of random variants.

  • #14
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts
    Quote Originally Posted by sunfighter View Post
    Your point is?

    Oh, if I have to type a lot it's wrong?
    jalarie's home page makes extensive use of framesets, so maybe he's defending his own choice of using them? I think sunfighter pointed out some important reasons not to use a frameset.

  • #15
    Regular Coder
    Join Date
    Jun 2002
    Location
    Flint, Michigan, USA
    Posts
    620
    Thanks
    1
    Thanked 20 Times in 20 Posts
    Quote Originally Posted by sunfighter View Post
    Your point is? Oh, if I have to type a lot it's wrong?
    Not "wrong" at all. It just seems counter-productive to me to have to work so hard when a simple way works so well.

    I keep hearing that there are security problems with framesets and iframes, but I've never heard what those problems are. Is this just an urban legend or are there real problems?


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

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