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!
Center the FRAMESET on a page
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame
View previous topic :: View next topic  
Author Message
gold4fish



Joined: 06 Jul 2007
Posts: 3

PostPosted: Wed Aug 01, 2007 8:56 am     Center the FRAMESET on a page Reply with quote

Hi,

I want to center the Frameset on a page.

For instance the FrameSet is 1024 wide, but it is always LEFT justified on the page (1280 wide). Whereas, it would look a lot nice IF the 1024 was centered within the 1280 page.

Can this be done?


Thanks!

Mike
Corey Bryant



Joined: 15 May 2004
Posts: 8154
Location: Castle Rock CO USA

PostPosted: Wed Aug 01, 2007 10:44 am     Reply with quote

Sounds like you need to use an Iframe instead of a regular frame.

_________________
Corey
Toll Free Fax Numbers | Merchant Accounts | MerchantAccount PodCast
gold4fish



Joined: 06 Jul 2007
Posts: 3

PostPosted: Sat Aug 11, 2007 2:41 am     Center the FRAMESET on a page Reply with quote

Corey Bryant wrote:
Sounds like you need to use an Iframe instead of a regular frame.


Actually the MainArea within the Frameset is for loading IFRAMES content. But, I want the entire FRAMESET to be centered. Frameset consists of TOP-masthead area; LEFT-nav area; and MAIN-target area.
Corey Bryant



Joined: 15 May 2004
Posts: 8154
Location: Castle Rock CO USA

PostPosted: Mon Aug 13, 2007 2:34 am     Reply with quote

How about the source code to see what we are dealing with?

_________________
Corey
Toll Free Fax Numbers | Merchant Accounts | MerchantAccount PodCast
iliast



Joined: 30 Aug 2007
Posts: 3

PostPosted: Thu Aug 30, 2007 2:55 am     Reply with quote

Corey Bryant wrote:
Sounds like you need to use an Iframe instead of a regular frame.


And how this can be done? Confused
Corey Bryant



Joined: 15 May 2004
Posts: 8154
Location: Castle Rock CO USA

PostPosted: Thu Aug 30, 2007 3:41 am     Re: Center the FRAMESET on a page Reply with quote

Corey Bryant wrote:
Sounds like you need to use an Iframe instead of a regular frame.


Actually the MainArea within the Frameset is for loading IFRAMES content. But, I want the entire FRAMESET to be centered. Frameset consists of TOP-masthead area; LEFT-nav area; and MAIN-target area.
Corey Bryant



Joined: 15 May 2004
Posts: 8154
Location: Castle Rock CO USA

PostPosted: Thu Aug 30, 2007 3:43 am     Re: Center the FRAMESET on a page Reply with quote

gold4fish wrote:
Actually the MainArea within the Frameset is for loading IFRAMES content. But, I want the entire FRAMESET to be centered. Frameset consists of TOP-masthead area; LEFT-nav area; and MAIN-target area.
That's not how frames work. You might consider using included content instead.

_________________
Corey
Toll Free Fax Numbers | Mile High Merchant Accounts | LoudCISP
Corey Bryant



Joined: 15 May 2004
Posts: 8154
Location: Castle Rock CO USA

PostPosted: Thu Aug 30, 2007 3:45 am     Reply with quote

iliast wrote:
And how this can be done? Confused
Something like
Code:
<div style="text-align:center; display:block">
<iframe src="http://www.example.com" width="300px" height="400px"></iframe>
</div>

_________________
Corey
Toll Free Numbers | SiteMaps for Search Engines
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
 
HOSTING / DESIGN
MAKE MONEY

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