Zoom in cover image, if aspect ratio doesn't fit image
-
Hi together,
first of all, I must once again thank you deeply for creating this theme!A few days ago, I recognized a minor issue using the cover feature. I use a image with aspect ratio 2/3. If the ratio is wider the image is cropped, so it fits the screen. In opposite if the ratio is narrower, the image shows up fully with a white (or grey) bar underneath.
Im my opinion it would be better not to fill up the image with a bar but to crop the image left and right instead to fit into the browser.I don't know, if this can be solved with css, tried something, but actually I didn't know which class I need to adress.
Thanks in advance and cheers!
SebastianPS. If you want to see, what I describe, visit my website and change size of you browser window. ;-)
-
Dear @neunzehnachtneun
you can set the image as a background image.
Then it always fits the screen.Best!
Marius
-
Well, this is an unexpected solution. But it works.
Thanks! -
Dear @neunzehnachtneun
happy it works!
Best!Marius
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