Badges are not aligned with image

  • Posts: 86
  • Thank you received: 3
5 years 4 months ago #301126

-- url of the page with the problem -- : www.justcoins.dk
-- HikaShop version -- : 4.0.0
-- Joomla version -- : 3.9.1
-- PHP version -- : 7.0.32

Hi

My badges are not aligned with the product image, when resizing the width of the browser.
How can I fix it?

Rgds
Picht

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

  • Posts: 4519
  • Thank you received: 612
  • MODERATOR
5 years 4 months ago #301171

Hello,

You can add some Css command in your Frontend file Css, see this tutorial to see how to proceed.
Hope this will help you to move forward.
Regards

Last edit: 5 years 4 months ago by Philip.

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

  • Posts: 86
  • Thank you received: 3
5 years 4 months ago #301181

Hi

I'm aware it will need to be fixed via css.
i have looked at it but can't find a way to get the badges and product images aligned all the time. When resizing the browser they drift.

/Picht

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

  • Posts: 81540
  • Thank you received: 13070
  • MODERATOR
5 years 4 months ago #301183

Hi,

Could you provide a screenshot of the settings of your badge so that we can get a better understanding of the situation ?

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

  • Posts: 86
  • Thank you received: 3
5 years 4 months ago #301214
Attachments:

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

  • Posts: 81540
  • Thank you received: 13070
  • MODERATOR
5 years 4 months ago #301218

Hi,

I think that you want to turn off the "keep size" setting of your badge.
With the option activated the badge image will always have the same size regardless of the size of the product image.
With the option turned off, the badge image size will adapt based on the size of the product image.

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

  • Posts: 86
  • Thank you received: 3
5 years 4 months ago #301222

Hi

I have turned it off for one of the badges, "UDGÅET", but it doesn't seem to have fixed the problem.
When resizing the width of the browser the badge is not always aligned with the image



/Picht

Attachments:

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

  • Posts: 81540
  • Thank you received: 13070
  • MODERATOR
5 years 4 months ago #301223

Hi,

Did you enter a percentage below the "keep size" option ?
Otherwise, the system won't know how to resize the badge.

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

  • Posts: 86
  • Thank you received: 3
5 years 4 months ago #301267

Yes
It is set to 50%

Attachments:

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

  • Posts: 81540
  • Thank you received: 13070
  • MODERATOR
5 years 4 months ago #301269

Hi,

Here, you can see that the badge is aligned with the image below:
monosnap.com/file/WsMxJa2ImIL6pcdDfVQtanmheR6SCL
The blue square is the area taken by the image.

And here you can see the same with a smaller screen :
monosnap.com/file/QLu24Bs17kZP6M8XCvaHwvEEIxQanO
As you can see, the badge is still correctly aligned with the area taken by the image.

So as far as I can see the problem on the listing with the badge going over the area of the product box is not a badge issue. It's that the thumbnails size you set for the listing is a bit too big in regard to the margin you set around the product boxes and the number of columns of the listing and the CSS which switch to 1 column mode.
With three columns and the margins you set, you only have a width of 292px available for your product thumbnails. So you should change that in the settings of your menu items and it should then display better.

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

Time to create page: 0.092 seconds
Powered by Kunena Forum