inherit
210338
0
Apr 26, 2024 22:43:02 GMT -8
RichardInTN
472
June 2014
richardintn
|
Post by RichardInTN on Sept 5, 2017 18:22:06 GMT -8
I appreciate all the work, Peter . Thanks (even if I did ask in the wrong place... LOL). One request (since you made it into a plugin, and thanks for doing that, by the way!): Would it be possible to set the image to "fit to width" and then lock it into place so it doesn't scroll with the page? Sure, just add additional rules after this line... $("body").css("background-image", "url(" + data + ")"); Adding (found these CSS controls online at w3): background-attachment: fixed; background-size: cover; after: $("body").css("background-image", "url(" + data + ")"); just broke the plugin (resulted in plain unaltered background). Was that NOT what I was supposed to add? Should I have added something else/different?
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Sept 6, 2017 2:38:51 GMT -8
$("body").css({
"background-image": "url(" + data + ")", "background-attachment": "fixed", "background-size": "cover" });
|
|
inherit
210338
0
Apr 26, 2024 22:43:02 GMT -8
RichardInTN
472
June 2014
richardintn
|
Post by RichardInTN on Sept 6, 2017 18:00:59 GMT -8
Gotcha! Thanks.
That's the ticket!
ETA: Might want to throw it into the plugins library (with the added CSS)... it's a good plugin!
|
|