Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Web Design Lobby Forum for general web design issues not specific to scripting or graphics.

Ezilon Directory   1,000 Directory Submissions   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 04-25-2008, 01:33 AM   #1 (permalink)
Contributing Member
 
Join Date: 03-24-08
Posts: 62
iTrader: 0 / 0%
skyscraper is liked by many
Lightbulb How to Center web with FRAMESET?

hello,

i'm design a website, using Frameset.
you can see it here
This design for 1024 x 768 screen resolution. High screen resolution will indent the page to Left side and blank white space on the right.

So how do i make to center this web page(or automatically centered base on user screen resolution). <centre> is not work for frameset.
skyscraper is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 04-25-2008, 01:41 AM   #2 (permalink)
Contributing Member
 
Join Date: 02-15-08
Posts: 250
iTrader: 3 / 100%
Latest Blog:
None

CaffinePhil is liked by many
Its probably not my place to say but using frames it not the best way to design a page. You could do that with CSS and add a scroll bar if you needed to certain areas.
__________________
Make Money Blogging | Quit Smoking
CaffinePhil is offline  
Add Post to del.icio.us
Reply With Quote
Old 04-25-2008, 02:22 AM   #3 (permalink)
Contributing Member
 
Join Date: 03-24-08
Posts: 62
iTrader: 0 / 0%
skyscraper is liked by many
i like frameset is because you can control how the page display, like, visitor not need to open new window

any idea, help me?
thanks.

Last edited by skyscraper : 04-25-2008 at 02:22 AM. Reason: additional
skyscraper is offline  
Add Post to del.icio.us
Reply With Quote
Old 04-25-2008, 02:41 AM   #4 (permalink)
v7n Mentor
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania
Posts: 2,927
iTrader: 0 / 0%
Costin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web pro
First thing first: Don't use position absolute.

After that:

1. Add this div after your body tag (that is, wrap the content in this div): <div id="PageWrapper">

2. Add these style rules:

Code:
body { margin: 0 auto 0 auto; padding: 0; text-align: center; } DIV#PageWrapper { width: auto; height: auto; margin: 0 auto 0 auto; padding: 0; text-align: left; }
that should do it.
__________________
JUNE - JavaScript Framework
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 04-25-2008, 02:46 AM   #5 (permalink)
Contributing Member
 
Join Date: 03-24-08
Posts: 62
iTrader: 0 / 0%
skyscraper is liked by many
Quote:
Originally Posted by Costin Trifan View Post
First thing first: Don't use position absolute.

After that:

1. Add this div after your body tag (that is, wrap the content in this div): <div id="PageWrapper">

2. Add these style rules:

Code:
body { margin: 0 auto 0 auto; padding: 0; text-align: center; } DIV#PageWrapper { width: auto; height: auto; margin: 0 auto 0 auto; padding: 0; text-align: left; }
that should do it.
is this working on frameset? because frameset contain no <body> tag

anyway thanks.

Last edited by skyscraper : 04-25-2008 at 02:47 AM. Reason: tag
skyscraper is offline  
Add Post to del.icio.us
Reply With Quote
Old 04-25-2008, 03:58 AM   #6 (permalink)
Contributing Member
 
Join Date: 02-15-08
Posts: 250
iTrader: 3 / 100%
Latest Blog:
None

CaffinePhil is liked by many
Quote:
Originally Posted by skyscraper View Post
i like frameset is because you can control how the page display, like, visitor not need to open new window

any idea, help me?
thanks.
One thing you cannot control with web pages is how they are diaplayed, have you tried using different screen resolutions and different browsers to see how frames are displayed?

Not a big fan sorry.

Yoiu could add a div container around your content and centre the div using:

margin: auto 0;
width: x px;

As it is all left aligned in Firefox.
__________________
Make Money Blogging | Quit Smoking
CaffinePhil is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
DIV SRC FrameSet Question WebWholesaler Coding Forum 1 03-18-2008 11:52 AM
your life center of it.. potchie Forum Lobby 17 12-23-2007 11:56 AM
[css] How to center this site? mess_alex Coding Forum 7 01-27-2007 01:11 PM
Help Center Live schweermo Web Hosting Forum 1 09-07-2006 02:44 AM
Data center 64.233.161.99 POR-15 Depot Google Forum 31 02-16-2004 07:14 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 07:05 AM.
© Copyright 2008 V7 Inc