Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Center an image

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-16-2007, 07:44 PM
 
kachyok kachyok is offline
 

Member
  
Join Date: Jan 2007
Posts: 13
 

Default 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.
__________________
Version 4.1.8 (Win)
Brookyn, NY
Reply With Quote
  #2  
Old 05-17-2007, 02:52 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Center an image

<div style="text-align="center">image code here</div>
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 05-17-2007, 11:02 AM
 
kachyok kachyok is offline
 

Member
  
Join Date: Jan 2007
Posts: 13
 

Default Re: Center an image

I have tried it with images and text, but it does not center it.
__________________
Version 4.1.8 (Win)
Brookyn, NY
Reply With Quote
  #4  
Old 05-17-2007, 11:03 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Center an image

Then you must have a style in that column overriding it. Also just try <div align="center">image code</div>
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 05-17-2007, 04:22 PM
 
kachyok kachyok is offline
 

Member
  
Join Date: Jan 2007
Posts: 13
 

Default 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.
__________________
Version 4.1.8 (Win)
Brookyn, NY
Reply With Quote
  #6  
Old 05-17-2007, 04:24 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 05-20-2007, 07:54 AM
 
kachyok kachyok is offline
 

Member
  
Join Date: Jan 2007
Posts: 13
 

Default Re: Center an image

[FONT='Times New Roman','serif']I could not find any color settings in there.[/font]
__________________
Version 4.1.8 (Win)
Brookyn, NY
Reply With Quote
  #8  
Old 05-20-2007, 08:17 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 05-21-2007, 04:21 AM
 
kachyok kachyok is offline
 

Member
  
Join Date: Jan 2007
Posts: 13
 

Default Re: Center an image

Unfortunately no
__________________
Version 4.1.8 (Win)
Brookyn, NY
Reply With Quote
  #10  
Old 05-21-2007, 04:23 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020