Community @ The Turning Gate

Support community for TTG plugins and products.

You are not logged in.

#1 2015-09-19 14:51:37

johnbrks
Member
Registered: 2015-08-14
Posts: 100

dynamic background works for pages, but not for gallery

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

#2 2015-09-20 01:18:12

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 12,644
Website

Re: dynamic background works for pages, but not for gallery

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 test site

Offline

#3 2015-09-20 04:37:32

johnbrks
Member
Registered: 2015-08-14
Posts: 100

Re: dynamic background works for pages, but not for gallery

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

Board footer

Powered by FluxBB