| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Fixed width page, centered in browser? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I'd like to set up my templates such that everything fits within a fixed width area, and that fixed width is centered horizontally in the browser window. I was able to implement the fixed width by setting:
#content-container { width: 770px; } but I can't figure out how to center everything on the page? What's the easiest way to do this? Thanks!
__________________
Ron Menelli RJM Music Technology, Inc. X-Cart Pro 5.2.9 |
|||||||
#2
|
|||||||
|
|||||||
![]() Whichever div that comes after <body> in the layout put this:
margin-left:auto; margin-right:auto; You may also have to use padding such as this: padding-left:30px; padding-right:30px; |
|||||||
#3
|
|||||||
|
|||||||
![]() Tal:
I tried your method and I cant seem to get it to work. rjmmusic, did you ever find a way to get this to work? I am trying to do something very similar.
__________________
Best Wishes, James 4.5.2 Gold (work in progress) |
|||||||
#4
|
|||||||
|
|||||||
![]() Quote:
For 4.3.0 with basic skin, FLC, and Firefox check the following: main.css html,body {min-width: 700px;} #page-container {width: 700px;} altskin.css #page-container {width: 700px;} .flc-container #center-main {width: 700px;}
__________________
X-Cart Gold v4.6.6 |
|||||||
#5
|
|||||||||
|
|||||||||
![]() Ther's a post here http://forum.x-cart.com/showthread.php?t=51709
__________________
Thank You - Alan Don't be like me, and keep saying "Nearly did it" go do it!! Version: 4.4.4 Gold - |
|||||||||
#6
|
|||||||||
|
|||||||||
![]() first find which CSS sheet is controlling html,body and page-container
then apply the appropriate code.
__________________
xcart 5.1.2 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|