Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
i have the following in my custom.css in phplugins/css to make a dynamic sizing background. it works fine for the Pages generated pages, but in gallery, i get the background, yet it is not dynamically sized (ie. will be cropped if you shrink the window). how do i specify this for the Gallery template? (i used the hack to copy over style data generated from Pages to Gallery).
body {
background-attachment: scroll;
background-image: url(/phplugins/images/backgroundSplash29.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
p.s. i actually realized the background is only dynamically sized on the landing page, but not when i click the link to galleries.
www.joliverbrooks.com
Last edited by johnbrks (2015-09-19 14:56:02)
Offline
I'm not seeing any differences between the two pages (and there's no background image showing). Have you changed something?
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
So it is. i must have had a typo when i was trying to fix the CSS. perhaps there was a browser cache issue? thanks again.
This css code leads to a successful dynamic background if others are interested:
body {
background: url(/phplugins/images/backgroundSplash29.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
Offline