Page 1 of 1
Image to fill viewport tutorial?
Posted: Sun Jul 23, 2023 9:37 am
by Mecerbranded
Hi
Can anyone point me to a tutorial where I can learn to make background or other images fill the viewport horizontally?
Thanks
Re: Image to fill viewport tutorial?
Posted: Sun Jul 23, 2023 11:15 am
by Pablo
Add a layout grid or flex container
Add a background image to the layout grid and set the background size to 'cover'
There are many example templates which demonstrate this functionality:
https://wysiwygwebbuilder.com/templates2023.html
Re: Image to fill viewport tutorial?
Posted: Sun Jul 23, 2023 1:53 pm
by Mecerbranded
Thanks for responding.
I downloaded a template and extracted the zip contents. When I open the wtp file in Web Builder, I see no no images. I'm using Web Builder 18.3.0.
When I place a background image with size set to cover in a layout grid and preview it, I see nothing. No Image.
When I place a background image with size set to cover in a flex container, and preview it, I see a thin horizontal strip of the image, and not the
1600x900 pixel image I used for a background.
Any further advice would be appreciated.
Re: Image to fill viewport tutorial?
Posted: Sun Jul 23, 2023 2:23 pm
by Pablo
Did you install the template the correct way?
https://wysiwygwebbuilder.com/using_templates.html
Did you look at the previews? Isn't this what you want?
Re: Image to fill viewport tutorial?
Posted: Sun Jul 23, 2023 2:39 pm
by Mecerbranded
I do not want to use a template.
I only want to learn how to make images fill the screen horizontally.
I downloaded a template to figure out what properties are set to make images fill the screen, but when I open the wtb, I see no images.
I figured out how to install a template and can see its images now.
Re: Image to fill viewport tutorial?
Posted: Sun Jul 23, 2023 2:42 pm
by Pablo
ok, then did you try this?
Add a layout grid or flex container
Add a background image to the layout grid and set the background size to 'cover'
If that does not help then where does it stop working for you?
Re: Image to fill viewport tutorial?
Posted: Sun Jul 23, 2023 3:22 pm
by Mecerbranded
Hi Pablo,
I copied the flex container and background settings from the "Bakery" template and it is working for me now. Thanks for your assistance, it is much appreciated.