• Resolved iconphotoco

    (@iconphotoco)


    I want my gallery, when viewed on devices wider than 1120px, to be the same width as the rest of the content on my site but right now it spans the full width of the screen. I am using Oxygen (not sure if this matters).

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @iconphotoco

    I have had a look at the rest of the content on that page and noted that they have a maximum width of 1120px.

    To give your FooGallery gallery that max-width too so that it doesn’t span the full width of the screen, kindly use the following CSS code:

    .foogallery#foogallery-gallery-1480{
        max-width: 1120px;
    }

    ?All you’ll now need to do is simply copy the code snippet as it is and go to the Edit page of that particular gallery and if you scroll down past the Gallery Settings section, you’ll see the “Custom CSS” section. Paste the code snippet as it is on the text box below it and save. You can also paste it to your theme’s style.css file or custom CSS/additional CSS area.

    Thanks.

    Kind regards,
    Elvis.

    Thread Starter iconphotoco

    (@iconphotoco)

    Thank you, Elvis! Worked like a charm.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Constrain gallery width to site width?’ is closed to new replies.