Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Help needed with changing background image in Weebly!

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #241802
    Jess
    Participant

    I only know the basics of CSS and I’m working on my own so I have nowhere to ask but here. Please help me.
    I want to change the background image of the entire site… that does not repeat.
    So far I’ve tried uploading the image and inserting
    background: url(nameoffile.png) no-repeat;
    to various places…but none would work.

    The codes are here down below.
    http://pastebin.com/2XSMtPrJ

    Thanks a lot!

    #241804
    Jerba
    Participant
    body {
        font-family: 'Raleway', sans-serif;
        font-size: 15px;
        font-weight: 500;
        color: #8e8e8e;
        min-height: 100%;
    
    /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
    background-image: url('PATH TO YOUR IMAGE');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
    
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    }
    
    #241805
    Jess
    Participant

    Thanks so much for the help, but unfortunately it didn’t work :/ do you have any other ideas? I just don’t know why it won’t do.
    I could get to the color of the background body part to change using bg-wrapper part of the code but that’s as far as I’ve gotten. No luck with inserting a background image.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.