Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Centering site and Fixed width for X-Cart 4.3

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-23-2009, 09:55 AM
 
Tim Glavin Tim Glavin is offline
 

Member
  
Join Date: Dec 2009
Posts: 14
 

Default Centering site and Fixed width for X-Cart 4.3

Hi,

I am using X-Cart 4.3 and as a stock layout the site grows and shrinks dynamically as you change your screen size. I have been searching the forums on how to set a permanent width to the site. 1024px seems to be the current standard for sites now. I also wanted the site to center in the browser.

Does anyone have information on this for X-Cart 4.3?

I also noticed that in the main edit templates that there are CSS files for IE6,IE7 and Firefox. Do you have to set each CSS for each type of browser?

Any help, idea's or suggestions would be great.

Thanks,
__________________
Tim Glavin
X-Cart 4.3
Reply With Quote
  #2  
Old 12-23-2009, 06:21 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Centering site and Fixed width for X-Cart 4.3

Several threads in the forum about this. Try setting "page-container" "width:1024px" and "margin:0 auto"
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 12-23-2009, 11:09 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Centering site and Fixed width for X-Cart 4.3

there are alt skins also for 4.3 so check there, but yes marin:0 auto;

will get the trick done.
__________________
xcart 5.1.2
Reply With Quote
  #4  
Old 12-25-2009, 05:24 PM
  gizmo's Avatar 
gizmo gizmo is offline
 

X-Adept
  
Join Date: Jan 2005
Location: Crawley : UK
Posts: 618
 

Default Re: Centering site and Fixed width for X-Cart 4.3

I thought the big top sites still use between 950 to 960 and not beyond this, Also most top sites still use centred fixed width, is this not the standard?

Correct me if I am wrong (Yep most do browse in 1024, but a lot of users still are below that, and this will cause scrollbars...

Like my daughters tiny notebook, sites that don't accommodate for this audience will be put off.

Just take a look at top sites:
BBC
CNN
SKY
CBS
FACEBOOK

And so on.... I personally never used a fixed of 1024. Not yet anyways.
__________________
Thank You - Alan
Don't be like me, and keep saying "Nearly did it" go do it!!
Version: 4.4.4 Gold -
Reply With Quote
  #5  
Old 12-25-2009, 09:55 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Centering site and Fixed width for X-Cart 4.3

I use between 900 and 980. 1007 will not leave a vert scroll bar at 1024 x 768
__________________
xcart 5.1.2
Reply With Quote
  #6  
Old 12-26-2009, 11:25 AM
  D Brugge's Avatar 
D Brugge D Brugge is offline
 

Advanced Member
  
Join Date: Oct 2008
Location: Memphis TN USA
Posts: 80
 

Default Re: Centering site and Fixed width for X-Cart 4.3

To expand on what Ashley has said, Yes, 1024 is the most commonly used screen width, but browsers need some of that width for their own "chrome," in the way of a vertical scroll slider.

Also, as wide screens gain popularity, many windows user are opting to put their menu bar on the side instead of the top. This also takes up some of that 1024 real-estate. That is why 950 - 980 pixel wide screens are common, to allow room for the "chrome"

Another option instead of fixed width is to use max-width and min-width. These css properties have not been supported by Internet Explorer in the past, but are supported in IE7 and IE 8. These properties do just as you would expect. They allow you to have flexible layout but with cut-off points. You can say "anything narrower than (min-width: xx px ) will appear as a fixed width with a horizontal scroll bar, and anything wider than (max-width: xx px) will appear as a fixed width with your background filling out the extra space.
__________________
David Brugge
Gold v. 4.3 (but not functional as yet)
Reply With Quote
  #7  
Old 12-26-2009, 12:06 PM
  gizmo's Avatar 
gizmo gizmo is offline
 

X-Adept
  
Join Date: Jan 2005
Location: Crawley : UK
Posts: 618
 

Default Re: Centering site and Fixed width for X-Cart 4.3

I was just brought up with following the standards and what top sites are using..

Yet to see top sites designers using over 1000 (As fixed width)
__________________
Thank You - Alan
Don't be like me, and keep saying "Nearly did it" go do it!!
Version: 4.4.4 Gold -
Reply With Quote
  #8  
Old 12-27-2009, 01:58 AM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Centering site and Fixed width for X-Cart 4.3

Min witdth and max widht do work, but sometimes, well most times they make the design look awkward if there is any graphical representation.

Nothing like a nice pic or slide show that is 700 px wide in the midle of a 1600 px wide monitor.

I see this alot on my monitors.

Menus way outside of the middle column design. That's why I prefer fixed width.

Ash
__________________
xcart 5.1.2
Reply With Quote
  #9  
Old 12-27-2009, 09:57 AM
  D Brugge's Avatar 
D Brugge D Brugge is offline
 

Advanced Member
  
Join Date: Oct 2008
Location: Memphis TN USA
Posts: 80
 

Default Re: Centering site and Fixed width for X-Cart 4.3

I'm sure Tim didn't mean for this thread to turn into a debate on design aesthetics, however IMHO, if a design looks awkward on a monitor, it is not the fault of setting min and max widths, it is the fault of NOT using these setting.

Sure, if all your site has is a static 700 px wide slide show, then it would not make sense to use a flexible layout. But there are times when it is very advantageous to use a liquid, a hybrid, or flexible layouts instead of a fixed width.

For the record, more than half of my designs are fixed width layouts. The rest are hybrids with min and max settings. But every site that I design, I take into account what the screen will look like on different platforms, with different browsers, and at different monitor settings, and design accordingly.
__________________
David Brugge
Gold v. 4.3 (but not functional as yet)
Reply With Quote
  #10  
Old 12-27-2009, 11:35 AM
  gizmo's Avatar 
gizmo gizmo is offline
 

X-Adept
  
Join Date: Jan 2005
Location: Crawley : UK
Posts: 618
 

Default Re: Centering site and Fixed width for X-Cart 4.3

Well I just replied back with constructive comments, as before my comments,some advice was telling the original poster, to set at what I consider a non web standard fixed width (And added my personal comments so that it would help the user).....

Also I am sure all comments have been some help
__________________
Thank You - Alan
Don't be like me, and keep saying "Nearly did it" go do it!!
Version: 4.4.4 Gold -
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:57 PM.

   

 
X-Cart forums © 2001-2020