X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Change width, center site (https://forum.x-cart.com/showthread.php?t=49045)

CDHSoftware 08-24-2009 03:48 PM

Re: Change width, center site
 
Hi,

I used your edit for the main.css. The shop now is the width I want but does not center.

http://www.cdhsoft.com/shop

Any ideas?

Regards

Carl
#4118809622

ARW VISIONS 08-24-2009 04:09 PM

Re: Change width, center site
 
centered for me.

CDHSoftware 08-24-2009 04:20 PM

Re: Change width, center site
 
On my site or yours?

Ok just checked in firefox and works fine. Just seems that IE 8.0 is not displaying correctly

Regards

Carl

Shamun 08-24-2009 04:22 PM

Re: Change width, center site
 
Centered for me as well.

If your seeing it not centered in IE, you need to use some statements to use a modified css file for IE.
If it doesnt look right in chrome, its due to missing or wrong css/html.

ARW VISIONS 08-24-2009 04:36 PM

Re: Change width, center site
 
now not displaying at all.

CDHSoftware 08-24-2009 04:41 PM

Re: Change width, center site
 
yeh, changing the skin to the original

Once I get the width and centering I want I'll just change the header to match the rest of the site

Not live yet so I can tweak a bit

Regards

Carl

CDHSoftware 08-24-2009 05:19 PM

Re: Change width, center site
 
Ok, changed the skin to default and set the css values and IE 8 still shows it aligned left, but firefox shows it centered. :(

Yet it shows my main site pages centered in IE 8 using the same CSS settings

Wierd

Shamun 08-24-2009 05:25 PM

Re: Change width, center site
 
Quote:

Originally Posted by CDHSoftware
Ok, changed the skin to default and set the css values and IE 8 still shows it aligned left, but firefox shows it centered. :(

Damned MS



You need to create a seperate css file for IE.

ARW VISIONS 08-24-2009 11:42 PM

Re: Change width, center site
 
no you don't. Centering the site with a fixed with is really only a couple of lines of code.

I don't understand why you are having trouble with this. I'd take a look at it for you if you like.

PM me.

cflsystems 08-25-2009 05:28 AM

Re: Resolved: Change width, center site
 
Quote:

Originally Posted by firstformedia
well i found it how to resolve, i had to add this to html,body:

html,body {
height: 100%;
width:950px;
background-color: #ffffff;
margin: 0 auto;
padding: 0px;
font-family: verdana, arial, helvetica, sans-serif;
font-size: 12px;
min-width: 780px;
border: 0px none;
}


Put the width and margin calls in page-container id class not in body class. page-container is the class that wraps around the whole site


All times are GMT -8. The time now is 02:33 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.