This is a discussion on "Centering Layout" within the Web Page Design section. This forum, and the thread "Centering Layout are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Centering Layout
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Centering Layout
Could someone please help me with the positioning of my page layout? I want my site to appear centered, but if viewed in 800x600 it will still show all of the site. I realise I must need to remove the left and right margin in container, but I'm just not sure what with.
Last edited by csa; Jan 8th, 2006 at 14:37. |
|
|
|
#2
|
||||
|
||||
|
Re: Centering Layout
Hey CSA.... it should not be that hard as you are using relative positioning over absolute..... so can you post up the URL so i can see more clearly how it sits?
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#3
|
||||
|
||||
|
Re: Centering Layout
Change the #container CSS to this:
#container { width: 760px; border: solid black 1px; position: relative; left: 50%; margin-left: -380px; border: solid black 1px; height: 595px; } |
|
#4
|
||||
|
||||
|
Re: Centering Layout
Hey herkulees..... I've seen that used before, but I'm sure that breaks in a few browsers..... have you got any test cases for this?
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#5
|
|||
|
|||
|
Re: Centering Layout
rob, i use that method on just about every site I do and the only browser that has problems, you guessed, mac ie.
example site: not done yet: http://www.schafertmd.com/tmd2005 |
|
#6
|
|||
|
|||
|
Re: Centering Layout
this is the css file http://www.schafertmd.com/tmd2005/co.../layout_v2.css
|
|
#7
|
||||
|
||||
|
Re: Centering Layout
hmmm.... nice one.
Mac IE is the least of most people's worries, so OK, I guess!
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#8
|
|||
|
|||
|
Re: Centering Layout
Thank you everyone. This works, and I now know for next time.
|
![]() |
| Tags |
| centering, layout |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Vertical centering - please help! | mpnuttall | Web Page Design | 6 | Apr 16th, 2008 11:38 |
| centering help please | RZX Developer | Web Page Design | 7 | Aug 2nd, 2007 11:58 |
| Fluid layout - IE6 clichés the layout when resizing | cyberseed | Web Page Design | 7 | Jun 16th, 2007 05:14 |
| Centering a DIV | johnmr | Web Page Design | 12 | Sep 13th, 2006 13:07 |
| What makes a layout a good layout? | Miles Lombardi | Graphics and 3D | 4 | Jul 26th, 2005 03:22 |