 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
markc
Joined: 31 Dec 2005 Posts: 3
|
Posted: Sat Dec 31, 2005 12:24 am Fixed width websites |
|
|
|
| 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
|
Posted: Sat Dec 31, 2005 6:03 am |
|
|
|
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.
|
Posted: Wed Jan 04, 2006 8:14 am |
|
|
|
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
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
|
Posted: Mon Jan 09, 2006 10:11 am |
|
|
|
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. |
|
|
|
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
|
|
|
|
|
 |
|
|
|
|
|
|
|