Help? Solid image (Not Tiled) Background on Squiffy?

minecraftpsyco99
24 Feb 2016, 15:59
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-image: url("https://media.giphy.com/media/lfUfQxNsvSOA0/giphy.gif");
background-color: #cccccc;
}
</style>
</head>
<body>


</body>
</html>


I put in this but it won't work, can anyone help?

Alex
24 Feb 2016, 18:04
Looks like you need to set the background-repeat property in the CSS. See http://stackoverflow.com/questions/8039 ... -the-image

minecraftpsyco99
24 Feb 2016, 19:00
I went to the site you reccommended, and put in the code and corrected it, and replaced the URL, with the URL of my image but I still get this when I boot up the game:

padding: 0 8px; padding-top: 8px; padding-right: 8px; padding-bottom: 8px; padding-left: 8px; overflow: hidden; zoom: 1; text-align: left; font-size: 13px; font-family: "Trebuchet MS",Arial,Sans; line-height: 24px; color: black; border-bottom: solid 1px #BBB; background-color: white; background-image: url('https://media.giphy.com/media/lfUfQxNsvSOA0/giphy.gif'); background-repeat: no-repeat;

I'm pretty sure I'm missing something obvious.

minecraftpsyco99
24 Feb 2016, 19:02
Also, I'm trying to make this a background for just one of the screens, not all of them, just the starting ones, where you set everything up, I'm trying to make this game as close as possible to the orignally FNAF (without visuals, just sounds and text) as possible.

minecraftpsyco99
24 Feb 2016, 19:56
Alex wrote:Looks like you need to set the background-repeat property in the CSS. See http://stackoverflow.com/questions/8039 ... -the-image


I've been trying everything from Javascript to Html to make a Background Image in Squiffy, Is there some code that I can just type directly into Squiffy to set it???

bgbg
25 Feb 2016, 15:42
(Deleted so as not to confuse people.)

bgbg
25 Feb 2016, 15:49
Never mind, I just read the part where you said you only wanted it for a few screens, by which I assume you mean sections of the story.

If I were going to try to do it in Squiffy itself, here's what I'd try first. No guarantees though.


[[MySection]]:
<div style="background: url('path')">
Text for this screen goes here.
</div>


Adapted from this page. (See the part that says "In HTML (which is evil)".)