| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Internet Explorer centering everything | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#11
|
|||||||
|
|||||||
![]() Your problem is different and actually more serious. You have this code AFTER your main <body> code:
<body OnLoad="na_preload_img(false, 'http://www.oneofakindscrapz.com/images/logo/logo2a.jpg', 'http://www.oneofakindscrapz.com/images/logo/logo3a.jpg', 'http://www.oneofakindscrapz.com/images/logo/logo4a.jpg', 'http://www.oneofakindscrapz.com/images/logo/logo5a.jpg', 'http://www.oneofakindscrapz.com/images/logo/logo6a.jpg', 'http://www.oneofakindscrapz.com/images/logo/logo7a.jpg');"> <div align="center"> You can only have one <body> tag, so you need to remove the one from wherever you added it that shows the above code. Also, get rid of that div tag with the center align to fix the centering problem.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#12
|
|||||||
|
|||||||
![]() ok now is this edited on the skin1.css? I think that above code is my header? I didn't do this design on my site so I am not really familiar with the code. I Just know that it being centered is annoying me.
__________________
Thank you, Victoria Feemster x-cart pro - 4.1.8 |
|||||||
#13
|
|||||||
|
|||||||
![]() You should contact your designer to see where that code was placed. You have 101 validation errors on your site, so your designer should be fixing those.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#14
|
|||||||
|
|||||||
![]() What is a validation error?
__________________
Thank you, Victoria Feemster x-cart pro - 4.1.8 |
|||||||
#15
|
|||||||
|
|||||||
![]() It means the code was not written to the current web standards, which will cause display issues in different browsers. You can read more about validation/web standards here:
http://www.w3.org X-Cart validates by default, so it is the code your designer added that doesn't adhere to the standards.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#16
|
|||||||
|
|||||||
![]() Thank you. I will get with her
__________________
Thank you, Victoria Feemster x-cart pro - 4.1.8 |
|||||||
#17
|
|||||||
|
|||||||
![]() Be prepared for a 'Oh we don't need to do that' response. Many developers don't care about writing W3C compliant sites, which is a mistake in my opinion. The <body> issue definitely needs to be taken care of though.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#18
|
|||||||
|
|||||||
![]() Quote:
Hello. I changed this Code:
to this Code:
It does fix the issues of the tables being centered, however it creates a new issue where the the store is left aligned now instead of centered in the middle of the page. Since our site is centered in the middle of the page at 90%, we obviously can't have the store left aligned ![]()
__________________
xCart 4.6.1 |
|||||||
#19
|
|||||||
|
|||||||
![]() You have the center inside the smarty width tag. Use this:
<table class="Container" cellpadding="0" cellspacing="0" width="90%" align="center"> <tr><td class="Container"> Get rid of those <center> tags! ![]()
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#20
|
|||||||
|
|||||||
![]() Here's my favorite centering trick:
in your css file, try this: TABLE.Container { width: 900px; margin-left: auto; margin-right: auto; background-color: #FFFFFF; } margin-left: auto; margin-right: auto; is the secret. better than center!
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
|
|||
X-Cart forums © 2001-2020
|