Webforumz's RSS FeedRSS Webforumz RegistrationRegister Contact Webforumz StaffContact

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, 20: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, 20:05
alexgeek's Avatar
Moderator
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,814
Blog Entries: 9
Thanks: 2
Thanked 3 Times in 3 Posts
Re: Framesets

Why are you using frames? There is no good reason to.
And I'm sure everyone here will back me up.
__________________
Web Design and Development Blog

Alex Perry
Technical Administrator.
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, 20: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, 22: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, 23: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, 23: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 12th, 2007, 00: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, 01:40
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,616
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, 02: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, 02:23
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,616
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, 02: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, 02:30
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,616
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, 02: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, 02:59
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,616
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, 21:25
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,871
Thanks: 1
Thanked 23 Times in 23 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!
__________________
Thanks
Marc
Staff Manager - 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!