Framesets

This is a discussion on "Framesets" within the Web Page Design section. This forum, and the thread "Framesets are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Nov 11th, 2007, 19:03
Junior Member
Join Date: Oct 2007
Location: Alabama
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Framesets

ok...ive made a frameset....i need to find out how to make it scroll left to right when minimized, instead of shrinkin my frames to make them fit..anyone know how to accomplish this?

here is the code
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Home</title>
</head>
<frameset rows="*" cols="300,1024,300" framespacing="0" frameborder="yes" border="1" bordercolor="#000000">
  <frame src="LeftFrame.html" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame" />
  <frameset rows="85,*" cols="*" frameborder="yes" border="1" framespacing="0">
    <frame src="TopFrame.html" name="topFrame" frameborder="no" scrolling="No" noresize="noresize" id="topFrame"  title="topFrame" />
    <frame src="MainFrame.html" name="mainFrame" scorlling="Auto" noresize="noresize" id="mainFrame" title="mainFrame"/>
  </frameset>
  <frame src="RightFrame.html" name="rightFrame" scrolling="No" noresize="noresize" id="rightFrame" title="rightFrame" />
</frameset>
<noframes><body>
</body>
</noframes></html>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Nov 11th, 2007, 19:05
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: Framesets

Why are you using frames? There is no good reason to.
And I'm sure everyone here will back me up.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Nov 11th, 2007, 19:16
Junior Member
Join Date: Oct 2007
Location: Alabama
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Framesets

well what else could i do to make this layout work? i mean, whats the best way to do it then?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Nov 11th, 2007, 21:09
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Framesets

Alex is right, and I back him up 100%: Frames are bad! They are an annoying way to divide content, or display another site inside yours, which is not good anyways (usually against copyright/patenting laws). If you want to divide your page, use divs that are styled with css.
However, in order for us to get an idea of what you are attempting, posting a link to your site would be good. Please do so...
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Nov 11th, 2007, 22:37
Most Reputable Member
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Framesets

Quote:
Originally Posted by bjbaughcum03 View Post
well what else could i do to make this layout work? i mean, whats the best way to do it then?
Use PHP includes. These give you all the benefits of frames, and have none of their drawbacks. And once you've learned to use includes, you can save yourself even more time with variables.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Nov 11th, 2007, 22:54
Junior Member
Join Date: Oct 2007
Location: Alabama
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Framesets

well ive pretty much got it straightened out now...but it has a few bugs..when i few it in firefox it doesnt display my right column...and in IE7 it doesnt display my left column...

here is my code...

Code: Select all
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<metta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Home</title>
<style type="text/css">
#header{
  margin: 0px 0px 0px 0px;
  background: #c8c8c8;
  width: 1024px;
}
#leftFrame{
  position: absolute;
  width: 200px;
  background: #ffff66;
  padding-bottom: 10px;
  height: 600px;
}
#mainFrame{
  margin-left: 200px;
  width: 624px;
  background: #c8c8c8;
  padding-bottom: 10px;
  height: 600px;
}
#rightFrame{
  position: absolute;
  width: 200px;
  background: #ffff66;
  padding-bottom: 10px;
  height: 600px;
}
p{
  font-size: 14px;
  margin: 0px 10px 10px 10px;
}
</style>
</head>
 
<body>
 
<div id="header">
  <div align="center"><img name="blahblah" src="blahblah.jpg" width="1024" height="85" border="0" id="blahblah" /></div>
</div>
 
<div id="leftFrame">
  <p>This is my left frame if all went well</p>
</div>
 
<div id="mainFrame">
  <p>This is my main frame</p>
</div>
 
<div id="rightFrame">
  <p>This is my right frame hopefully</p>
</div>
 
</body>
</html>

i havent had a chance to upload this to my actual site yet..but when i do, ill be sure to post the link..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Nov 11th, 2007, 23:37
Junior Member
Join Date: Oct 2007
Location: Alabama
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Framesets

ok ive got it working somewhat now, but when i minimize my browser, my columns drop down below the other...how can i fix that...

here is my code with the changes ive made...

Code: Select all
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<metta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Home</title>
<style type="text/css">
#header{
  margin: 0px 0px 0px 0px;
  background: #c8c8c8;
  width: 1024px;
}
#leftFrame{
  margin-right: auto;
  margin-left: 0px;
  width: 200px;
  background: #ffff66;
  padding-bottom: 0px;
  height: 600px;
}
#mainFrame{
  margin-right: auto;
  margin-left: 0px;
  width: 624px;
  background: #c8c8c8;
  padding-bottom: 0px;
  height: 600px;
}
#rightFrame{
  margin-left: 0px;
  margin-right: auto;
  width: 200px;
  background: #ffff66;
  padding-bottom: 0px;
  height: 600px;
}
p{
  font-size: 14px;
  margin: 0px 10px 10px 10px;
}
</style>
</head>
 
<body>
 
<div id="header">
  <div align="center"><img name="blahblah" src="blahblah.jpg" width="1024" height="85" border="0" id="blahblah" /></div>
</div>
 
<div id="leftFrame">
  <p>This is my left frame if all went well</p>
</div>
 
<div id="mainFrame">
  <p>This is my main frame</p>
</div>
 
<div id="rightFrame">
  <p>This is my right frame hopefully</p>
</div>
 
</body>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Nov 12th, 2007, 00:40
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Re: Framesets

Didn't have any problem when I tested your code?
Tested with FF and IE!
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Nov 12th, 2007, 01:18
Junior Member
Join Date: Oct 2007
Location: Alabama
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Framesets

Quote:
Originally Posted by monie View Post
Didn't have any problem when I tested your code?
Tested with FF and IE!
Really?...i cant get it to quite work...it works fine in a full screen..but when u shrink the window...the columns go to dropping..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Nov 12th, 2007, 01:23
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Re: Framesets

when I resize my window, nothing happen!
All of your div sits at the left side of my screen.. is it what your page suppose to be..?
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Nov 12th, 2007, 01:26
Junior Member
Join Date: Oct 2007
Location: Alabama
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Framesets

no..it should be 3 columns..what i really want is the 3 columns, and no shrinking when you shrink your browser...id like to have a scroll bar instead
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Nov 12th, 2007, 01:30
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Re: Framesets

could you post a screen shot of how your page will looks like?
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old Nov 12th, 2007, 01:41
Junior Member
Join Date: Oct 2007
Location: Alabama
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Framesets

i would, but when i view on my work computer is doesnt display right..it comes up as 1 column, and 3 rows...i want it the other way...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old Nov 12th, 2007, 01:59
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Re: Framesets

It basically your positioning problem!

I have an example of a simple CSS layout page here that you could look at it and study how I position every element. If you want, I'll post them here
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #15  
Old Nov 12th, 2007, 20:25
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,780
Thanks: 0
Thanked 16 Times in 16 Posts
Re: Framesets

To stop this, usually i create a container to fit my columns in...

Code: Select all
#container {
width: (Width of all 3 columns + about 10px);
}
Hope that helps!
__________________
Marc
Staff Manager - Webforumz.com


Want to be a moderator? PM me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #16  
Old Nov 13th, 2007, 00:51
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Re: Framesets

Here is the CSS Sample Layout I promise you:

HTML: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MonieWeb[2007] @Copyright Reserved 2007</title>
<style type="text/css">
<!--
body {
    margin: 0;
}
#container {
    width: 80%;
    margin: 0 auto;
}
#header {
    width: auto;
    height: 140px;
    background-color: #0000FF;
}
#left_container {
    float: left;
    width: 195px;
    height: 800px;
    margin: 5px 25px 5px 0;
    background-color: #00FF00;
}
#centre_container {
    margin: 5px 200px;
    width: auto;
    height: 800px; /*set this to auto if you want the height depends on the content*/
    background: red;
    }
#right_container {
    margin: 5px 0 5px 5px;
    float: right;
    width: 195px;
    height: 800px;
    background-color:#00FF00;
}
#footer {
    height: 170px;
    width: auto;
    clear: both;

    background-color: #0000FF;  
}
-->
</style>
</head>

<body>
<div id="container">
    <div id="header">My Header</div>
    <div id="left_container">This is a fixed height left container</div>
    <div id="right_container">This is a fixed height right container</div>
    <div id="centre_container">
        Content Content Content Content Content Content Content Content 
        Content Content Content Content Content Content Content Content
        Content Content Content Content Content Content Content Content 
        Content Content Content Content Content Content Content Content   
        Content Content Content Content Content Content Content Content 
        Content Content Content Content Content Content Content Content   
        Content Content Content Content Content Content Content Content 
        Content Content Content Content Content Content Content Content   
        Content Content Content Content Content Content Content Content 
        Content Content Content Content Content Content Content Content   
        Content Content Content Content Content Content Content Content 
        Content Content Content Content Content Content Content Content   
        Content Content Content Content Content Content Content Content 
        Content Content Content Content Content Content Content Content   
        Content Content Content Content Content Content Content Content 
        Content Content Content Content Content Content Content Content   
        Content Content Content Content Content Content Content Content 
        Content Content Content Content Content Content Content Content   
        Content Content Content Content Content Content Content Content 
        Content Content Content Content Content Content Content Content   
        Content Content Content Content Content Content Content Content 
        Content Content Content Content Content Content Content Content   
        Content Content Content Content Content Content Content Content 
        Content Content Content Content Content Content Content Content   
        Content Content Content Content Content Content Content Content 
        Content Content Content Content Content Content Content Content   
    </div>        
    <div id="footer" >Footer</div>
</div>
</body>
</html>
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 01:13.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25