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

CSS issue: changing the width

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-21-2011, 11:29 AM
 
seller seller is offline
 

Senior Member
  
Join Date: Apr 2009
Posts: 131
 

Default CSS issue: changing the width

Hi, I am trying to install the new 4.4.2 with the 3 columns template but I want to modify it so it won't be stretched to the full width of the screen.
I want a fixed width of 960 pixels

Where can I change it?
__________________
4.2.1
X-Special Offers
Quote Request
Reply With Quote
  #2  
Old 02-22-2011, 12:49 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default Re: CSS issue: changing the width

Find the main.css file being used, then find the #page-container class.

Change this to:

#page-container {
min-height: 100%;
position: relative;
width:960px;
margin:0 auto;
}
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote

The following 2 users thank pauldodman for this useful post:
am2003 (02-22-2011), seller (02-22-2011)
  #3  
Old 02-22-2011, 10:46 AM
 
seller seller is offline
 

Senior Member
  
Join Date: Apr 2009
Posts: 131
 

Default Re: CSS issue: changing the width

Thanks Paul!!!
works great
__________________
4.2.1
X-Special Offers
Quote Request
Reply With Quote
  #4  
Old 10-27-2011, 06:34 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: CSS issue: changing the width

Where would I change the color of the background outside of the page container?
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #5  
Old 10-27-2011, 07:30 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: CSS issue: changing the width

Also, is there any problem using "max-width" instead of "width"?

EXAMPLE
#page-container {
min-height: 100%;
position: relative;
max-width:1200px;
margin:0 auto;
}

This should mean that on any browser set below 1200 that it will render to fit the screen (without having a width scroll bar), and any browser set over 1200 it will fix the width at 1200 pixels and center the page, at least that is the way I understand it.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
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 07:24 PM.

   

 
X-Cart forums © 2001-2020