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!
Fixed width websites
Post new topic   Reply to topic    HTML Help Forum Index -> CSS
View previous topic :: View next topic  
Author Message
markc



Joined: 31 Dec 2005
Posts: 3

PostPosted: Sat Dec 31, 2005 12:24 am     Fixed width websites Reply with quote

I designed a web page to fit the 800 by 600 screen resolution size. When I change the resolution to 1200 the page is fixed to the left hand side of the screen. What changes do I need to make so the web page is centered on the screen with white space on both sides? Thank you for your help.
Corey Bryant
Site Admin


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

PostPosted: Sat Dec 31, 2005 6:03 am     Reply with quote



it depends on your CSS. If your body / main layer has a width, you can add
Code:
text-align: center;
there[/code]
fairdoes



Joined: 05 Aug 2005
Posts: 39
Location: u.k.

PostPosted: Wed Jan 04, 2006 8:14 am     Reply with quote

It also varies with browsers. IE6 defaults to centre, FireFox defaults to align left.

margin: auto; sorts firefox.

IE5 is the worst I've found for css support, but
a) text-align:center; centres the div (not the text)!
b) nobody will use IE5 soon, the world's best browser (firefox) being free
Smile

P.S. I like pages designed for 800x600, because huge monitors make a mess of text - imagine fifty words on one line; and small monitors mess up the google ads ...
gary.newelluk



Joined: 12 May 2005
Posts: 548
Location: Peterhead, Scotland

PostPosted: Mon Jan 09, 2006 10:11 am     Reply with quote

As good as Firefox is I can't see Internet Explorer ever being displaced by it.

The reason is obvious and the one Microsoft keeps getting sued for.

Internet Explorer is given away with windows. Non techy people can't be bothered to learn how to download software and then install it.

Over 50% are non-techy like this and therefore Internet Explorer will always be the big boy.....

Unless Microsoft really make internet explorer 7 only work with windows 2003 and up, which is apparently a plan.

That would be playing into Firefox's hands as a good number of offices around the world are still running Windows 2000.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> CSS 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