Thread: CSS background

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2014
    Posts
    2
    Rep Power
    0

    CSS background


    Hello,

    I'm running a community and I want to change the background, but I don't know CSS very well. My current bg script looks like this:
    Code:
    `body {
    background: #f9f9f9 url("styles/we_universal/theme/images/bg_1.png");
    margin: 15px 0;
    font: 62.5% Verdana, Arial, Helvetica, sans-serif;
    color: #828282;
    }`
    But I want to change it so I can have one background repeating horizontal on the bottom of the page and another background above it repeating in all directions. Something like this:

    http://imagizer.imageshack.us/v2/800x600q90/547/82ws.png

    What do I need to do to get such a background?
  2. #2
  3. --
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2012
    Posts
    3,921
    Rep Power
    1045
    *sigh*

    If only humanity would come up with some kind “Internet search” so that we could find information based on a certain search term.

    What? Somebody has already invented this? Then why the hell aren't you using it!
    The 6 worst sins of securityHow to (properly) access a MySQL database with PHP

    Why can’t I use certain words like "drop" as part of my Security Question answers?
    There are certain words used by hackers to try to gain access to systems and manipulate data; therefore, the following words are restricted: "select," "delete," "update," "insert," "drop" and "null".
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2014
    Posts
    2
    Rep Power
    0
    I found this community with "Internet search", so I am using it. I said I don't know CSS very well, so your link didn't help me.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2014
    Posts
    36
    Rep Power
    1
    Here are some options:

    Code:
    body {
    
        background: url('file_path.png') repeat-x;
    
        background: url('file_path.png') repeat-y;
    
        background: url('file_path.png') repeat;
    
        background: url('file_path.png') no-repeat;
    
    }

IMN logo majestic logo threadwatch logo seochat tools logo