Community @ The Turning Gate

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.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

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

johnbrks
Member
From: Los Angeles
Registered: 2015-08-14
Posts: 147
Website

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: 17,830
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 2/3 test site

Offline

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

johnbrks
Member
From: Los Angeles
Registered: 2015-08-14
Posts: 147
Website

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