Jump to content

[SOLVED] How to make prices aligned in the same line in product grid view?


Recommended Posts

Hi everyone, by applying Milosz Myszczuk's great tutorial:  http://mypresta.eu/en/art/developer/prestashop-products-list-grid-view.html,  I successfully changed the product from list view to grid view.

My website: http://phonepartsdirect.co.uk/gb/10-iphone-5-parts

 

But now I have a problem. Currently the prices are relative to the product title, sometimes prices are higher, sometimes lower. I want them to be in the same line. I tried to change the price tag in product-list.css file, but failed.  I can move the position of the prices lower or higher,  but they are always not in the same line.  Can anybody help?

 

Many thanks.

 

Tony

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

hello

 

second ago i replied to your comment :)

we can continue discussion here

Hi vekia, many thanks for your very quick reply. Yes,  I did try to add something like: "position:relative; bottom: 10px", but all the prices move at the same time and still not in the same line! Maybe I did something wrong?

 

Tony

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

 

you mean vertical price align? need just add fixed height to your title 

#product_list h3 {
    height: 43px;
}

Hi SergeyH, thanks for your suggestion. I mean horizontally price align at the same level.

 

But anyway, inspired by vekia, I changed the position to absolute. "position:absolute; bottom: 25px". Then problem is solved now.

 

Thank you anyway.

 

Tony

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

  • 6 months later...

some of your products has got description some of them not, so

block of product with description is higher than block of product without desc

 

it means, that you have to define height param for  product_desc or for whole block (and use position:absolute for but button).

okay, so:

 

product_desc {

height:50px;

}

 

 

effect:
AXWr2Z5.png

 

 

 

instead of original:

 

 

27m0DSI.png

Link to comment
Share on other sites

×
×
  • Create New...