Full width image

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
Joel
 
 
Posts: 146
Joined: Thu Sep 23, 2010 10:10 am
Location: Australia
Contact:

Full width image

Post by Joel »

Hi,
What is the best way to make an image full width regardless of a browser?
wwonderfull
 
 
Posts: 1440
Joined: Fri Aug 21, 2020 8:27 am
Contact:

Re: Full width image

Post by wwonderfull »

In that case the css should be something like this

Code: Select all

img {
    max-width: 100%;
    height: auto;
}
User avatar
Pablo
 
Posts: 22489
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Full width image

Post by Pablo »

If you place the image inside a layout grid then it will be full width.

There are many templates available that demonstrate this functionality.
https://wysiwygwebbuilder.com/templates2024.html
Joel
 
 
Posts: 146
Joined: Thu Sep 23, 2010 10:10 am
Location: Australia
Contact:

Re: Full width image

Post by Joel »

Is there a way to adjust the height of the grid regardless of an image original height?
Can I make it parallax?
User avatar
Pablo
 
Posts: 22489
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Full width image

Post by Pablo »

The Layout grid itself does not have a height, the height is determined by the content of the grid.

But you can set the height to 100vh, 50vh etc. Or you add a (transparent) place holder inside the grid.
Joel
 
 
Posts: 146
Joined: Thu Sep 23, 2010 10:10 am
Location: Australia
Contact:

Re: Full width image

Post by Joel »

Thank you
Post Reply