Jump to content

Centre images


Recommended Posts

You would need to create a special class for the images - img class="product-image" with a specific margin (left, right) - and then change the product-list.tpl to include the -class="product-image"- when the code gets the image.

By the way, I tested with a margin: 15px on the images, but obviously its a little messy.

Link to comment
Share on other sites

Find this line on product-list.tpl. You should change the css of the class "product_img_link".

getImageLink($product.link_rewrite, $product.id_image, 'home')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" />



Then, adjust the margin-padding propierties. I recommend you to use Firebug (Firefox Extension).

Link to comment
Share on other sites

Ups, your theme is quite different. I'd need your product-list to have a look. They are 2 combination of classes in your theme:

1. ajax_block_product first_item first_item_of_line
2. ajax_block_product item

You need to change both (if you only change the first item, the others keep uncentered)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...