Results 1 to 2 of 2

Thread: css

  1. #1
    Thread Starter
    Newbie
    Not a Verified Customer
    banikian's Avatar
    Join Date
    Nov 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    css

    How do you make backgrounds using a CSS code? I would really like to learn how to make backgrounds. Is it really hard or is it really simple? HELP!

  2. #2
    Veteran taylerj's Avatar
    Join Date
    Apr 2009
    Location
    Las Vegas, NV
    Posts
    380
    Thanks
    1
    Thanked 8 Times in 6 Posts

    Re: css

    its not to hard really. Open your "master.css" file which is in the "styles" folder.

    On live 1 youll see this code:
    Code:
    body { background: #F8F8F8; padding: 0px 0px 40px 0px; margin: 0px; font-family: 'Verdana', 'Trebuchet MS', 'Arial', sans-serif; font-size: 12px; color: #666666; }
    Has you can see the background is set to color #F8F8F8. We can chnage this a few ways.
    Make a background color: Chnage the XXX to the color you want.
    Code:
    background: #XXX;
    Make the background an image: Chnage the XXX to the image URL.
    Code:
    background: url(XXX);
    Lets combine the 2: Chnage the XXX just like you did in both codes above. This code lets you fill in the areas around a smaller picture with a color.
    Code:
    background: #XXX url(XXX);
    Now you can get much more setailed than this but this should get you started. For use on any other website other than classipress just keep the body tag such has:
    Code:
    body { background: #XXX;}
    This fills in the entire body of the site with what color or image you tell it to.
    Eric is best known in the forum for his in depth tutorials. He started in design 4 years ago and then discovered WordPress and has been coding and hacking themes and plugins ever since. He's quite helpful if you have any questions for him in the forum. Eric also makes his own WordPress themes and plugins and provides ClassiPress consulting on the side. David Cowgill - (Owner of Classipress)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)