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)
-   -   Products page - some images center some don't (https://forum.x-cart.com/showthread.php?t=56398)

BBM_ 11-05-2010 01:06 AM

Products page - some images center some don't
 
My products page is playing up and I wonder if someone can help me.

Currently I have images which align in the center of the products page with the product name under them (which is the way i like it). However having just imported some products their images are left justified and part of the product name appears next to the image.

I thought this was a common table that the rules would apply to everything but obviously I'm wrong.

Any suggestions to why this would happen?

Thanks in advance.

BBM_ 11-05-2010 01:11 AM

Re: Products page - some images center some don't
 
The tables are different heights which I assume is due to one having a longer product name than another, yet with both images the same size I can not see why 1 will center and 1 won't.

amy2203 11-05-2010 02:41 AM

Re: Products page - some images center some don't
 
have you got a link so we can take a look?

BBM_ 11-05-2010 02:57 AM

Re: Products page - some images center some don't
 
Hi Amy,

Thanks for the response,

It's still under development but you can see some links here

Removed link as site is not live yet <- works fine

Removed link as site is not live yet <- is not so fine

If you have any suggestions it would be appreciated.

Note: Still under development - no orders please

amy2203 11-05-2010 03:07 AM

Re: Products page - some images center some don't
 
the problem is that your titles are wrapping around the images, in the one that doesn't work, the first word is so short it fits next to the image, but on the other page the word is longer so it drops to the next line,

you could add a line break after the image in the template to make all titles start on the next line, or you need to look at the floats and things in the css

hth

BBM_ 11-05-2010 03:17 AM

Re: Products page - some images center some don't
 
Wow thanks for that,

I have been scratching my head for far to long over this one (it's my first store)

I really appreciate your assistance.

If you have time do you mind if I ask you 1 more question? feel free to say no

amy2203 11-05-2010 03:18 AM

Re: Products page - some images center some don't
 
you can ask, i might not have an answer though,

BBM_ 11-05-2010 03:32 AM

Re: Products page - some images center some don't
 
It's another simple one, I just want to center the sub-category images

here's a reference,

Link removed as site not live yet

Thanks again.

amy2203 11-05-2010 03:40 AM

Re: Products page - some images center some don't
 
center them where? can you take a screenshot and mark where they should be?

BBM_ 11-05-2010 03:43 AM

Re: Products page - some images center some don't
 
Thank for your time Amy,

You will notice that they appear left justified. A better example might be here,

Link removed as site is not yet live.

See the 5 subcategory icons are on the left, ideally they would be in the middle with equal space on the left and right (center justified)

I hope this makes sense.

amy2203 11-05-2010 03:46 AM

Re: Products page - some images center some don't
 
try adding

text-align: center;

to the css for #content-container, #center-main {

BBM_ 11-05-2010 03:50 AM

Re: Products page - some images center some don't
 
Amy,

I am indebted to you, your knowledge of X-Cart is impressive.

Many thanks for your kind assistance.

Now to work on speeding it up.

amy2203 11-05-2010 04:38 AM

Re: Products page - some images center some don't
 
try the firebug plugin for firefox, it will help you with things like this, it will show you how long each element takes to load,

BBM_ 11-05-2010 04:43 AM

Re: Products page - some images center some don't
 
Thanks for that, I'm currently using it and trying to learn all the timings.

I seem to have a errant dingbat file which is not playing nicely so I will comment it out and see if that fixes it.

Is it normal to have a lot of 301/302 moved GET images?

amy2203 11-05-2010 05:09 AM

Re: Products page - some images center some don't
 
not sure, cdseo pro might affect that


All times are GMT -8. The time now is 03:58 AM.

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