- This topic has 10 replies, 3 voices, and was last updated 7 years, 1 month ago by
Tom.
-
AuthorPosts
-
June 10, 2015 at 8:29 am #113721
Michael
In Layout settings I have defined a container width of say 900px. Now if I have a image in a section of a page, how could I make the image’s width not be restricted by the defined container width (900px in this case) but to span over the whole screen/browser width from the left to the right?
Problem is, I want the image to fill the whole browser window from left to right, regardless of monitor size, but want the rest of the content of the page (text etc.) be within a container of 900px width.
Thanks for any help!June 10, 2015 at 9:53 am #113761Tom
Lead DeveloperLead DeveloperHow are you adding this image? Are you using the Sections add-on? Page Header add-on? Or are you just adding it into your content?
If it’s with the rest of the content, it’s not really possible to tell it to break out of the surrounding container.
Let me know π
June 10, 2015 at 10:53 am #113783Michael
Thanks for your help. I am using sections plug in and it is first (top) section on a page. In that section the picture is the only content. Below that I have sections with normal text.
I have several pages on the site and on each of those pages I want a different image to show, but each of them with that same format (maximum width to fill the browser window).
June 10, 2015 at 12:21 pm #113811Tom
Lead DeveloperLead DeveloperThis is definitely do-able using Sections π
First, set the box type and inner box type to “Fluid”.
Now for your image, add this style to it: style=”width:100%;”
So your image would look something like this:
<img src="..." style="width:100%;" />
Let me know if that does the trick or not.
June 10, 2015 at 12:46 pm #113815Michael
Thanks for your help. Unfortunately, it doesn’t work yet.
I have box type and inner box type set to fluid. Only this code within in the section:(wordpress changes it a bit though..)
June 10, 2015 at 12:56 pm #113824Michael
sorry wrong format, should have chosen “code” here.
<img src="http://drascher.de/wp-content/uploads/2015/04/stuttgartmitlogo.png" style="width: 100%;" />
hope this does it now
June 10, 2015 at 11:52 pm #113871Tom
Lead DeveloperLead DeveloperAny way you can link me to the site so I can see why it’s not working? Either through here or email (support@generatepress.com)?
June 11, 2015 at 2:46 am #113895Michael
yes, thanks. sent you an email!
June 11, 2015 at 8:58 am #114009Tom
Lead DeveloperLead DeveloperAh, are you disabling the mobile functionality?
Try adding this CSS:
.generate-sections-enabled .container.grid-container { max-width: 100%; width: 100%; }
August 17, 2016 at 7:54 am #218877Brittany Pescetto
I am trying to set one slide on the parallax banner (in evolve theme) to be a responsive image the full width of the slider/page, rather than flush right and constrained to a box.
Thanks!
August 17, 2016 at 8:57 am #218907Tom
Lead DeveloperLead DeveloperI’m afraid we can’t offer support for other themes here – check with their support forum π
-
AuthorPosts
- You must be logged in to reply to this topic.