Friday 23 September 2011

Xcart Help :- 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.

No comments:

Post a Comment