WordPress.org

Ready to get started?Download WordPress

Forums

Coding the style.css sheet to change the background (3 posts)

  1. seancoopergmailcom
    Member
    Posted 8 years ago #

    I'm still very new to this, so any help is great.

    Does this code look right to change the kubrick theme? I'm attempting to make the background for the whole site a repeat of a gif I have in my image folder.

    ---
    /* Begin Typography & Colors */
    body {
    font-size: 62.5%; /* Resets 1em to 10px */
    font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif;
    background-image: url('/images/img_36copy.gif');
    background-repeat: repeat;
    text-align: center;
    }

    #page {
    background-image: url('/images/img_36copy.gif');
    background-repeat: repeat;
    border: 1px solid #959596;
    text-align: left;

    -----

  2. w3central
    Member
    Posted 8 years ago #

    It looks alright. But you can leave out the background-repeat: repeat; as that is the default behavior. Also, I assume #page isn't the whole space because then ofcourse the body background would disappear behind it.

  3. devilmaycry
    Member
    Posted 8 years ago #

    w3central is right, there is no need for the background-repeat: command to be there as you are using the default 'tiled' background behaviour.

Topic Closed

This topic has been closed to new replies.

About this Topic