Fixed background photo with CSS?

Discussion in 'Dzonia WordPress Theme' started by trasgu, May 25, 2014.

Thread Status:
Not open for further replies.
  1. trasgu

    trasgu Member

    Joined:
    Oct 13, 2012
    Messages:
    188
    Likes Received:
    18
    Location:
    Santander, Spain
    Hi there friends,
    How can I upload a background image that holds fixed, in Colorway I add this code in the CSS but in this theme does not seem to be working :(
    body {
    background: url(http://ikiam.com.ec/wp-content/uploads/2014/02/plantas-medicinales-y-magicas.jpg) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    }

    Thx !!!
     
  2. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,

    Paste this code in Custom CSS
    Appearance > Theme Option > Styling Option > Custom CSS

    Code:
    body, html {
    background: url(http://ikiam.com.ec/wp-content/uploads/2014/02/plantas-medicinales-y-magicas.jpg) no-repeat center center fixed!important;
    -webkit-background-size: cover!important;
    -moz-background-size: cover!important;
    -o-background-size: cover!important;
    background-size: cover!important;
    } 
    This will solve your issue.


    Thanks & Regards
    Gourav Shrivastava
     
    trasgu likes this.
  3. trasgu

    trasgu Member

    Joined:
    Oct 13, 2012
    Messages:
    188
    Likes Received:
    18
    Location:
    Santander, Spain
    Excellent Gourav !!! thx sooo much :)
     
Thread Status:
Not open for further replies.

Share This Page