1. Torbjörn
  2. Commercial Templates
  3. Sunday, 13 August 2023
  4.  Subscribe via email
The content (title-text-button) in LayerSlideshow image is not visible on mobile - especially portrait view. Works fine on desktop.

Changing settings in module or template, still keep the image "contain" i.e. image width always 100%

Is there a way to use the css "object-fit: cover" or something similar to the image?
References
  1. https://samfundet-sverige-faroarna.se
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

Sure. To amend you can add the following to the Responsive Custom CSS fields within the General -> Responsive Options tab of your template settings. For more details on using these fields may I suggest the following article... https://joomla51.com/tutorials/template-parameters/applying-custom-css-to-a-screensize-device

(edit to taste)

.layerslideshow .img-fill {
height: 300px;
}
.layerslideshow img {
object-fit: cover;
height: 100%;
}


Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Thanks Ciaran,
Perfect - Works like a charm.
Exactly what I wanted to achieve.

I'll take a look at the article you recommended :)
  1. more than a month ago
  2. Commercial Templates
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.