View Single Post
  #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