Difference between revisions of "Modify Site Background Image or Colour"

From UnionCloud Support
Jump to: navigation, search
(Page contents was incorrect and listed slide speed adjust not what title said)
 
Line 1: Line 1:
If you want to change the UnionCloud Background Image, or Background Colour, and you have access to [[Global CSS]] you can do either of these things using the following lines of code]]
+
If you want to change your UnionCloud sites' Background Image, or Background Colour, and you have access to [[Global CSS]] you can do either of these things using the following lines of code:
  
To change the speed of the scroll simply change the 'auto:X,' line and replace the X with the number of seconds you want to delay the scroll, the example below uses 2 seconds.
+
<pre>
 
+
body {
<syntaxhighlight lang="javascript" line='line'>
+
    background: url(https://pathToImage.jpg) no-repeat center center fixed; /*FOR AN IMAGE*/
$('.auto-stripe ul').jcarousel({
+
OR
scroll:1,
+
background-color:color; /*FOR A COLOR*/
wrap: 'last',
+
  -webkit-background-size: cover;
auto:2,
+
  -moz-background-size: cover;
itemFallbackDimension: 300
+
  -o-background-size: cover;
});
+
  background-size: cover;
</syntaxhighlight>
+
}
 +
</pre>

Latest revision as of 15:03, 8 July 2018

If you want to change your UnionCloud sites' Background Image, or Background Colour, and you have access to Global CSS you can do either of these things using the following lines of code:

body { 
    background: url(https://pathToImage.jpg) no-repeat center center fixed; /*FOR AN IMAGE*/
OR
background-color:color; /*FOR A COLOR*/
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}