[SOLVED] Height consistancy on product_name

  • Posts: 290
  • Thank you received: 22
6 years 1 month ago #288719

-- HikaShop version -- : 3.3.0
-- Joomla version -- : 3.8.5
-- PHP version -- : 7

Hi,
I'm trying to make the product listing in a div look even better then it does now.
Although the height consistency feature for the box is a great improvement, because of the bright colours of the "order" button it still looks a bit messy when those buttons are not aligned (in my case) at the bottom.

It's often cause by the product_name being longer for some products and going across 3 lines where most have only 2 lines.
As a result everything is going a bit out of place and make the page look a bit "not so nice" :)

Would it be very difficult to fix this misalignment of the different elements within a row of hikashopcontainers ?
Maybe the height consistency can also be applied to the product_name?

Sorry for the missing link but the site in local at the moment.

Nico

Last edit: 6 years 1 month ago by nico.van.leeuwen. Reason: solved

Please Log in or Create an account to join the conversation.

  • Posts: 81515
  • Thank you received: 13069
  • MODERATOR
6 years 1 month ago #288720

Hi,

No, you can't use the same javascript for that. It would require some new javascript to be able to handle that.
Maybe you could do it with CSS:
stackoverflow.com/questions/2147303/how-...om-of-its-parent-div

Please Log in or Create an account to join the conversation.

  • Posts: 290
  • Thank you received: 22
6 years 1 month ago #288765

Hi Nicolas,

Yes, I tried a simmilar option but the issue I could not yet get resolved is the border/box which is not growing with it to go all the way around the items.
Could this be because the box-size is calculated before the CSS is used?

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
6 years 1 month ago #288782

Hello,

Applying some CSS code to that CSS class will probably do the job :

.hikashop_subcontainer.thumbnail {
height : 300px;
}

Please Log in or Create an account to join the conversation.

  • Posts: 290
  • Thank you received: 22
6 years 1 month ago #288911

Hello Mohamed,

Thanks for this tip.

In the end we ended up with this CSS to get things in line (for our site) :

.hikashop_container form {position: absolute; bottom: 15px; height: 50px;}
.hikashop_products .hikashop_product_name {	min-height: 65px; }
.hikashop_subcontainer.thumbnail {height : 400px;}

Maybe it's of use for somebody else.

The following user(s) said Thank You: Mohamed Thelji

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
6 years 1 month ago #288912

Hello,

Thank you for your feedback !

Best regards,
Mohamed Thelji.

Please Log in or Create an account to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum