Full browser window responsive image or svg
-
does it have to be a row background image?
In the gridder, right click on the row and choose "set html class and id". For "html class" enter:
myrow
Enter the custom css in "lay options" -> "custom css & html".
.myrow .background-image.background-image-style-normal img{ object-fit: fill!important; } -
and it has to be a browser height row
-
Thanks! That works with an image.
Can it work with an SVG? Also, it doesn't need to be a row background image ... is there a better way?
-
Also, is it possible to add a padding? Thank you for your help!
-
sure just try to add the svg as the background does that work?
with space around maybe this?
.myrow .background-image.background-image-style-normal img{ object-fit: fill !important; top: 20px!important; right: 20px!important; left: 20px!important; bottom: 20px!important; width: calc(100% - 40px)!important; height: calc(100% - 40px)!important; }change values if u like
the 40px one always has to be left + right (horizontal)
-
Thank you! This all works with an image.
Doesn't work with a svg tho ... any ideas?
-
@arminunruh Sorry, is there a way to get to work with a SVG?
-
link? should work with svg too
-
Sure, how we go: https://aarondawkins.com/svg/
-
hey i dont know why it doesnt work with a svg sorry, maybe its better if you use a jpg
-
It's ok! Jpeg is fine, SVG would be great tho. Thank you so much for your help! I appreciate the support.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login