HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
FRAMES HELP!
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame
View previous topic :: View next topic  
Author Message
html.coder



Joined: 22 Dec 2008
Posts: 6

PostPosted: Sat Dec 27, 2008 9:34 pm     FRAMES HELP! Reply with quote

i want a frame with:

<FRAMESET COLS="7%,*" ROWS="5%">

i am having problems with : ROWS="5%">
i want it across whole page, not in the navi area only, HELP Exclamation Exclamation Exclamation
PayneLess Designs



Joined: 28 Feb 2007
Posts: 1408
Location: Biloxi, MS

PostPosted: Sun Dec 28, 2008 12:58 pm     Reply with quote

Maybe this example will help:
Code:
CSS: None. Add your own.

HTML:

<!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 - Validating</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" dir="ltr" />
</head>

<!-- Most people don't bother validating their frameset page since it doesn't add anything to the screen. But now you will know how if you want to do it. This works the same way in HTML 4. All you have to do is replace the Doctype above. -->

<!-- The Frameset code is what you need to get rid of the framespacing in Internet Explorer and other browsers. The Conditional Comments below hides the code from the validator. The framespacing attribute gets rid of the framespacing in Internet Explorer and border gets rid of it in all the other browsers. -->

<!--[if ie]>
<frameset rows="100%" cols="200,*" framespacing="0" border="0">
<frame name="menu" src="menu.html" />
<frame name="main" src="main.html" />
<noframes>
<body>

</body>
</noframes>
</frameset>
<[endif]-->

<!-- The purpose for the following Frameset code is to satisfy the validator. Make certain the rows and cols in the frameset tag below matches the ones in the frameset tag above. This way when this frameset code is loaded it won't change the settings that were set above. -->

<frameset rows="100%" cols="200,*">
<frame name="menu" src="menu.html" />
<frame name="main" src="main.html" />
</frameset>

<!-- To add more attributes to the FRAME tag visit http://www.w3schools.com/tags/tag_frame.asp -->

</html>


Basically:
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">
<head>
<title>Your Page Title</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="keywords" content="Your keywords." />
<meta http-equiv="description" content="Description of page." />
<link href="Your_style_file.css" rel="stylesheet" type="text/css" />
<link rel="icon" type="image/x-icon" href="http://Domain_Name.com/imgs/favicon.ico" />
<link rel="shortcut icon" type="image/x-icon" href="http://Domain_Name.com/imgs/favicon.ico" />
</head>
<frameset cols="100%" rows="255,*">
<frame name="header" src="index2_fr1.html" scrolling="no" frameborder="0" noresize="noresize" />
<frame name="content" src="index2_fr2.html" scrolling="auto" frameborder="0" noresize="noresize" />
</frameset></html>
Modify to meet your requirements.
html.coder



Joined: 22 Dec 2008
Posts: 6

PostPosted: Thu Jan 01, 2009 1:59 pm     I wanted a small "footer area" pllus what you did Reply with quote

I wanted a small "footer area" pllus what you did, that would help, like a "contact" bar (row) and a "nav"(col) and body(col)
PayneLess Designs



Joined: 28 Feb 2007
Posts: 1408
Location: Biloxi, MS

PostPosted: Thu Jan 01, 2009 3:04 pm     Reply with quote

Once you have your pages working, give me a link. The footer/contact/nav bar(s) can be added and probably will be on the frame page that the others load into.
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8428
Location: Castle Pines North, CO USA

PostPosted: Fri Jan 02, 2009 4:56 am     Reply with quote



So maybe you want a header (all the way across), then in the middle a nav / main content, and a footer (all the way across)?

Any reason why you are using frames? You understand that they are problematic and can cause a lot of problems (building a site with frames). There are other ways you can accomplish consistency with your website using things like server side includes.

_________________
Corey
Toll Free Fax Solutions | Mile High Merchant Accounts | Expression Web Blog
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial