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)
-   -   Center an image (https://forum.x-cart.com/showthread.php?t=31209)

kachyok 05-16-2007 07:44 PM

Center an image
 
Hi guys I have a question. I have placed a few images on the right Xcat column, but the images automatically aligned to the left. Can somebody please tell me what code should I put in to center them?
Thanks.

balinor 05-17-2007 02:52 AM

Re: Center an image
 
<div style="text-align="center">image code here</div>

kachyok 05-17-2007 11:02 AM

Re: Center an image
 
I have tried it with images and text, but it does not center it.

balinor 05-17-2007 11:03 AM

Re: Center an image
 
Then you must have a style in that column overriding it. Also just try <div align="center">image code</div>

kachyok 05-17-2007 04:22 PM

Re: Center an image
 
It worked perfectly. Thank you very much.
Can you please tell me what code I should modify and where, to change the color of Product Descriptions and all the text on the left and right side if my customer area from grey to black.
The site is www.healthydevotion.com
Thank you.

balinor 05-17-2007 04:24 PM

Re: Center an image
 
I don't know what CSS styles that skin calls, but if you look at the template (customer/main/product.tpl for example) you can see what style it is using and then edit it in the main style sheet.

kachyok 05-20-2007 07:54 AM

Re: Center an image
 
[FONT='Times New Roman','serif']I could not find any color settings in there.[/font]

balinor 05-20-2007 08:17 AM

Re: Center an image
 
The color settings are in the stylesheet, the template only contains the reference to the class in the stylesheet. Do you know CSS?

kachyok 05-21-2007 04:21 AM

Re: Center an image
 
Unfortunately no

balinor 05-21-2007 04:23 AM

Re: Center an image
 
Ahh...then this might be a bit tricky for you. First thing I would do is get a good book on CSS, the O'Reilly ones are great. All of the formatting in X-Cart is controlled via the master stylesheet, so you will need to understand the basics of how a class is called, and what a Hex color code is.


All times are GMT -8. The time now is 02:08 PM.

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