WordPress.org

Ready to get started?Download WordPress

Forums

Changing Background Color and Image in CSS (8 posts)

  1. donnabzy
    Member
    Posted 3 years ago #

    I want to change the background color of the page other than the blog entries. (Or add an image that borders on each side of the main page.)

    This is the CSS style sheet from the theme I'm using -- can someone show me what line of code I'd use to change the color (I have the color chart so I've got that covered) and how I'd put a non-repeating background image? (I know HTML way better than CSS.)

    body {
    background: #FFFFFF url("images/top.gif") repeat-x;
    color: #323232;
    text-align:center;
    font:11px/18px Verdana, Arial, Helvetica, sans-serif;
    margin: 0px auto 0px;
    padding: 0px;
    }

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    We need to see your site before we can help.

  3. donnabzy
    Member
    Posted 3 years ago #

    Ah, that would be smart, wouldn't it?

    http://www.spontaneouslysouthern.com

    Thanks!

  4. charles.murphy
    Member
    Posted 3 years ago #

    This is the line you want to look at
    background: #FFFFFF url("images/top.gif") repeat-x;

    Just change #FFFFFF to whatever color code you want to use. change the relative image path to wherever your background image is, and change repeat-x to no-repeat.

  5. donnabzy
    Member
    Posted 3 years ago #

    Awesome, charles.murphy! Thanks much for your help!

  6. donnabzy
    Member
    Posted 3 years ago #

    I'm sure I'm missing something really obvious, but I uploaded my background (sunflowerwall.jpg is the name) into my images folder in wordpress, where the other images used in the site are located on my server. I changed the info above to:
    background: #FFFFDD url("images/sunflowerwall.jpg") no-repeat;

    And nothing happened. I want a very light yellow background, hence the FFFFDD color code, and the image name is accurate. Any ideas on what I've done wrong? I'm using Elements of SEO, which I love, but editing it hasn't been as easy as some others I've used before.

    Thanks..
    http://www.spontaneouslysouthern.com

  7. donnabzy
    Member
    Posted 3 years ago #

    Does anyone have any idea what I'm doing wrong? I just want to update the background (or at least just to the left/right of the blog entries) and upload a wallpaper (same place)? Thanks!

  8. nickmills
    Member
    Posted 3 years ago #

    can anyone help me change background image for my site as well? i uploaded the image from my desktop to my wp theme 'choco' but not uploaded for some reason??

Topic Closed

This topic has been closed to new replies.

About this Topic