Jump to content

Adjusting size of cart buttons


MaJoran243

Recommended Posts

Hi,

 

I'm setting up a Prestashop 1.4.9 version and tried several times to adjust the size of my cart buttons in the standard theme, due the translations need more or less space within the buttons.

 

Is it possible to adjust the button just with the blockcart.css?

 

I've created new button graphics (mediumsmall with a width of 80pxnon-exclusiv as well as exclusive) and I have added them to the global.css in my standard theme folder.

The blockcart.css can edit the text arrangement of the translation but it dosen't say anything about the graphic behind the text. How can I implement the new graphic (mediumsmall) instead of having the original one (smal)? If I change the value in blockcart.tpl in the main module folder to class="button_mediumsmall nothing is displayed in the background.

 

Can anyone help me

Thanks in advance

post-152850-0-98380800-1350520992_thumb.png

Edited by MaJoran243 (see edit history)
Link to comment
Share on other sites

Mhhh...think I solved it, but I'm not sure if it's correct.

I've added a background-image to each cart-buttons in my blockcart.css and defined the width manually.

 

 

#cart_block p#cart-buttons a {

background-image: url('../../../img/button-mediumsmall.png');

float: left;

width: 80px;

}

#cart_block p#cart-buttons a#button_order_cart {

background-image: url('../../../img/button-medium_exclusive.png');

float: right;

width: 100px;

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...