Hey there syzygist,
How are you doing today?
Would you mind posting link to your site and possibly screenshot of what you’re trying to achieve and I’d be happy to try to help with some custom CSS 🙂
Best regards,
Bojan
Hi Bojan,
Sorry I omitted that. Here’s the link:
http://test-site.wp-tutor.me/test-gallery
The page template is set to Full Width.
I am using the same background inside and outside of the container (blinking stars) so the container won’t be visible, but I changed the container background back to the default for the purposes of this discussion. What I am looking for is to extend the container all the way to the edges of the view screen, so that none of the site background would be showing in default zoom.
I’m also wondering if there’s a way to reduce the padding between the Gallery and the edge of the container so the Gallery uses more of the container width, or is that being controlled by the Gallery code?
Hey again,
Well this should be possible by changing the default container width, to do that please try adding the following CSS code in the style.css file of your child theme or if your theme doesn’t have custom CSS tab add it in your site using the following plugin:
http://wordpress.org/plugins/simple-custom-css
@media (min-width: 1200px) {
.container {
width: 100%;
}
}
This should be the result http://screencast.com/t/6liAcGUA8EDY, I’ve also used media query so it doesn’t affect smaller resolutions and responsiveness of your site.
Your page content should expand on its own to occupy the space, but the gallery width should be controlled by gallery code http://screencast.com/t/hKVAhvWp.
Hope this helps 🙂
Cheers,
Bojan
The code above didn’t work. The nested brackets and parentheses didn’t look quite right to me, so I tried this:
@media {min-width: 1200px}
.container {
width: 100%;
}
That achieved the result I was looking for, and that you kindly demonstrated in your first screenshot.
Thanks also for the screenshot of how to find the gallery code. I have firebug, but my coding skills are limited, so I’m not always sure what to do with code once I find it. I’ll check with the Simple Lightbox author for guidance on the gallery margins.
Many thanks for your time on this!
Hey again syzygist,
The syntax for that is definitely not good. At least the part which includes media query.
So what you did there is simply placed it outside of media query which is the reason it works, so you can just remove the line above if you want to keep it like that.
Check here how correct media query should look like http://www.w3schools.com/cssref/css3_pr_mediaquery.asp.
Best regards,
Bojan