This is a discussion on "[SOLVED] Centering a layer based page for different screen sizes?" within the Starting Out section. This forum, and the thread "[SOLVED] Centering a layer based page for different screen sizes? are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] Centering a layer based page for different screen sizes?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Hi there! A little bit lost on how to centre a page that consists of five layers namely: Header, Left_container, Centre_container, Right_container and Footer. Just want to make sure it remains in the centre of the page regardless of what screen size the browser is using.
Here is the code I've started with:
|
|
|
|
#2
|
||||
|
||||
|
Re: Centering a layer based page for different screen sizes?
Because you are using position:absoloute this makes it really hard to center the page. Can i see your layout please?
Normally we can just create a container and give it a margin:0 auto;.... Cheers, Marc EDIT: After opening your site in Dreamwever... Why dont you use a simple 3 column layout with floats? A good tutorial of 3 column layout is at the bottom of this page: http://css.maxdesign.com.au/floatutorial/.
__________________
Marc Staff Manager - Webforumz.com Want to be a moderator? PM me. Last edited by Marc; Oct 27th, 2007 at 11:17. |
|
#3
|
|||
|
|||
|
Re: Centering a layer based page for different screen sizes?
You should be able to see the layout in the code i posted but here is an image of the layout.
http://www.webforumz.com/attachment....8&d=1192970971 |
|
#4
|
||||
|
||||
|
Re: Centering a layer based page for different screen sizes?
Did you see my above post after i edited?
__________________
Marc Staff Manager - Webforumz.com Want to be a moderator? PM me. |
|
#5
|
|||
|
|||
|
The problem is I'd like the containers to remain the same size. The one you are refering to resizes the columns according to the size of the window.
Is there a way to make sure that the columns don't resize but have a static width and still remain centred? |
|
#6
|
|||
|
|||
|
Re: Centering a layer based page for different screen sizes?
It is more easier if you could post your HTML code along with the CSS so we can test them in our browser.
If not, it will only be a "theory" solution Thanks..
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#7
|
|||
|
|||
|
Re: Centering a layer based page for different screen sizes?
Ok here we go:
|
|
#8
|
|||
|
|||
|
Re: Centering a layer based page for different screen sizes?
Hemmm... You might try this:
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Last edited by Monie; Oct 30th, 2007 at 00:52. |
|
#9
|
|||
|
|||
|
Re: Centering a layer based page for different screen sizes?
Bingo!!! Thats worked perfectly. Just changed the width from 80% to 996px for design in 1024x768 because i wanted to keep the centre container width fixed. I owe you one Monie!
|
|
#10
|
|||
|
|||
|
Re: [SOLVED] Centering a layer based page for different screen sizes?
One problem I've just noticed. The layout doesn't work properly in IE6. Its fine in firefox though. any suggestions?
|
|
#11
|
|||
|
|||
|
Re: [SOLVED] Centering a layer based page for different screen sizes?
Problem solved. Made a newbie mistake. Adjusted the second margine in the left container to 0px from 25px.
|
|
#12
|
|||
|
|||
|
Re: [SOLVED] Centering a layer based page for different screen sizes?
Nice.. glad to know you sorted it out!
If you have any more problem related to CSS, you might want to visit the CSS Section in this forum to learn the basic idea of CSS (Layout, FAQ etc..) Cheers..
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| dreamweaver layer alignment in all screen resolution | shinesmithdas | Web Page Design | 1 | May 16th, 2008 22:47 |
| [SOLVED] page centering issues | VanderBOOM | Web Page Design | 12 | Dec 4th, 2007 15:06 |
| [SOLVED] Centering an image with CSS without moving anything else on the page. | Ed | Web Page Design | 5 | Oct 29th, 2007 11:34 |
| Page Sizes | Maverick25r | Web Page Design | 11 | Feb 26th, 2007 17:24 |
| About to lose my mind....centering div layer | fairydreamz23 | Web Page Design | 7 | Nov 30th, 2006 02:03 |