How to stop the background from repeating

Discussion in 'HomeBuilder WordPress Theme' started by vmunderhill, Feb 5, 2014.

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

    vmunderhill New Member

    Joined:
    Feb 3, 2014
    Messages:
    12
    Likes Received:
    0
    I have tried adding the code "background-repeat:no-repeat;"

    But my background still keeps repeating. How do I get it to stop?
     
  2. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    Hello,

    Remove background image from
    Appearance > Theme options > General settings > Background
    and
    Paste this code in Custom CSS
    Appearance > Theme Option > Styling Option > Custom CSS

    Code:
    html, body {
    background: url(ENTER YOUR IMAGE ADDRESS HERE) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    }
    
    It will work.

    Thanks & Regards
    Nitesh Raghuwanshi
     
  3. vmunderhill

    vmunderhill New Member

    Joined:
    Feb 3, 2014
    Messages:
    12
    Likes Received:
    0
    Thank you!
     
Thread Status:
Not open for further replies.

Share This Page