Jump to content

Five: Add Background Gradient

Recommended Posts

  • Replies 7
  • Views 9.9k
  • Created
  • Last Reply
  • 6 months later...

In the template you are using, you could try this code (changing colours if needed)


#body  {
         background: -webkit-linear-gradient(blue, white); /* For Safari 5.1 to 6.0 */
         background: -o-linear-gradient(blue, white); /* For Opera 11.1 to 12.0 */
         background: -moz-linear-gradient(blue, white); /* For Firefox 3.6 to 15 */
         background: linear-gradient(blue, white); /* Standard syntax */
       }

This worked in the bedford template and maybe others:


#siteWrapper  {
     background: -webkit-linear-gradient(red, blue); /* For Safari 5.1 to 6.0 */
     background: -o-linear-gradient(red, blue); /* For Opera 11.1 to 12.0 */
     background: -moz-linear-gradient(red, blue); /* For Firefox 3.6 to 15 */
     background: linear-gradient(red, blue); /* Standard syntax */
   }

I got this code from http://www.w3schools.com/css/css3_gradients.asp

Link to comment
  • 3 years later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.