Welcome, Guest
Username: Password: Remember me

TOPIC: Static Background

Static Background 2 years 5 months ago #7730

How can I set the background to be static or fixed?

Site is www.cypresstruckworks.com
The administrator has disabled public write access.

Static Background 2 years 5 months ago #7731

  • trungdt
  • trungdt's Avatar
  • OFFLINE
  • Administrator
  • Posts: 2287
  • Thank you received: 997
  • Karma: 121
Hi,

Please add your domain to get support (You should add it in your member area), if you did not add domain then we will do not support in next time.

Here is the code that you need to modify:

body#ot-body {
background: url(../images/body-bg.png) 0 0 repeat;
color: #444444;
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size: 13px;
}

change to this code:
body#ot-body {
   background: url(../images/body-bg.png) no-repeat center center fixed;
   -webkit-background-size: cover;
   -moz-background-size: cover;
   -o-background-size: cover;
   background-size: cover;
   color: #444444;
   font-family: Tahoma, Arial, Helvetica, sans-serif;
   font-size: 13px;
  background: url(images/bg.jpg) no-repeat center center fixed; 

}

Regards
The administrator has disabled public write access.
Time to create page: 0.158 seconds