How to make a gallery slider full page width

I would like to be able to insert a full width responsive gallery on client pages, but do it from within the CMS.
Basically it has to be able to be outside of the column that contains the main page content - which is of course not full width. Thats the issue - in that $content tag has to be inside that.
Is there a way anyone knows - using the standard Pulse template that would work?

That won't work. You'd have to change the template to full width in order to be able to do that, and in addition wrap every other content block inside a container to restrict the width again.

Hi thanks, I was thinking that too.
Was wondering though whether there was any way to make a css override and put the gallery tag into a div that would break out of the layout.
But I am not a CSS wiz.
Clearly :confused:

You aren't able to override the outer div's max width.

1 Like

You can do this but it requires a bit of CSS calc voodoo.
Here's an example to get you started.

Ah, thanks very much Tim
I have tried implementing that with a static image here:

and the picture has certainly broken out of the main content, but its not going full width.

A couple of things that need fixing;

  1. Your column width is 1140px wide rather than my 800px example. Change out the values in the CSS.
  2. You have a fallback style of img { max-width: 100%; } which prevents the image getting bigger than 100%. Add an override in the .slider img style media query to reset this to 100vw;
    .slider img { max-width:100vw }
    That should get you closer to where you want to be.
1 Like

Ah yes, I see, thanks for pointing that out.
This now works a treat for a single image:

but I tried it with a Pulse gallery slider
and its not there. Its still being contained. I shall need to delve into that a bit more

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.