-
AuthorPosts
-
September 28, 2022 at 3:59 pm #1366736
Dear team,
on my blog page below I use the raster element with settings as as in your demo “freelance”. On tablet landscape view it looks finde, but on portrait view the pic is nott fully visible.-> How can I realize this? I played with the raster element settings, but was not successful
September 29, 2022 at 8:08 am #1366833Hey Tilman,
Thank you for the inquiry.
The page above doesn’t exist. We may need to login to the site. Please provide the login details in the private field. A screenshot of the issue will also help. You can use imgur, savvyify or dropbox for the screenshot.
Best regards,
IsmaelSeptember 29, 2022 at 8:26 am #1366837sorry Ismael, pls see correct link below – as well screenshots
- This reply was modified 2 years, 2 months ago by oestersund.
September 30, 2022 at 1:51 pm #1367097Hi,
Thank you for the link to your page and the screenshot, I see that your grid row’s height is set to 100vh, when this is set the cell background image is set to background-size: cover which means the image will cover the cell height and width, and in order to cover the height the image will be too wide for the space, unless you want it stretched and distorted.
I see that the image is too wide between 768px & 1605px so try this css:@media only screen and (min-width: 768px) and (max-width: 1605px) { #av-layout-grid-1 .flex_cell.avia-full-stretch { background-size: contain !important; }
After applying the css, please clear your browser cache and check.
This sets the background-size: contain so the whole image shows, height & width, the only drawback is there is some space above and below the image because it is centered in the screen.
If you don’t like this you can add a background color to the cell matching the image so there is no space, like this:@media only screen and (min-width: 768px) and (max-width: 1605px) { #av-layout-grid-1 .flex_cell.avia-full-stretch.avia-builder-el-first { background-size: contain !important; background-color: #C1E1FF; }
unfortunately, I didn’t find the exact color of your image background, so adjust the color to suit.
Please see the screenshot in the Private Content area.Best regards,
MikeSeptember 30, 2022 at 4:26 pm #1367128HI Mike,
thx a lot. I would go for solution a) as on other posts I wont´ have monochrome backgrounds.Best regards / nice weekend
Tilman
September 30, 2022 at 6:11 pm #1367142Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘raster layout pic landscape / portrait’ is closed to new replies.