Keyword

Fixed image height in item view

More
7 years 6 months ago #160886 by Paul
Fixed image height in item view was created by Paul
Hi,

I would like to adjust the height of an image in item view, in K2 properties it's only possible to change the width.

What is the proper way to have max width (as defined in properties) aligned with the content and to fix height to a percentage (50%).

I tried fixing height on 350px, this works on notebook and tablet but gives a blank space (rest of image) on mobile.

Item example: ontwikkel.zzperworden.info/zzp-info/starten/zzper-worden/wat-is-je-specialiteit

Thanx!

Paul

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 6 months ago #160980 by Krikor Boghossian
Replied by Krikor Boghossian on topic Fixed image height in item view
Hello,

You can use a fixed wrapper and use the image as a background image.
background-size: cover and background-position can do wonders for your layout.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum