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

Keep page full width

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-15-2011, 10:48 AM
 
epic epic is offline
 

Member
  
Join Date: May 2005
Posts: 19
 

Default Keep page full width

Is there a way to keep the pages at full width even when the browser is set to 'restore down' (the middle square button at top right of browser)?

At the moment, if you make the browsing window smaller the banner concertinas and a lot of my content that is in the middle disappears from view. Not good on notebooks etc. I would like for the screen to stay at full width and people just scroll the page across as in most major web sites.

Any help in pointing me in the right direction would be great!
__________________
Version 4.3.1
www.eternalflow.co.uk
Reply With Quote
  #2  
Old 09-15-2011, 11:12 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Keep page full width

In main.css:
Code:
body { height: 100%; background-color: #005fac; margin: 0; padding: 0; min-width: 870px; border: 0 none; }

min-width is the important setting. Set this to whatever you like.

This will allow your page to resize down to this size.

I also like to set this max-width for page-container:
Code:
#page-container { min-height: 100%; min-width: 780px; max-width: 1024px; position: relative; margin-left: auto; margin-right: auto; background-color: #fff; }
If you simply want a fixed width, just use width:960 px; or whatever value you want on both classes.

HTH,
-mike
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #3  
Old 09-15-2011, 12:07 PM
 
epic epic is offline
 

Member
  
Join Date: May 2005
Posts: 19
 

Default Re: Keep page full width

It works perfectly! Thank you for saving me hours of frustration!
__________________
Version 4.3.1
www.eternalflow.co.uk
Reply With Quote
  #4  
Old 09-16-2011, 05:20 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Keep page full width

Your very welcome. Glad it helped.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
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 01:56 PM.

   

 
X-Cart forums © 2001-2020