CSS small request, please..

Discussion in 'CSS' started by idan_k, Jan 6, 2011.

  1. #1
    Hi,

    i have a simple clran template to my presell page.
    the background color is white and the post area (800px frame) is with also.

    this is the code in the style.css after i try to edit:

    /* begin Page */

    body
    {
    margin: 0 auto;
    padding: 0;
    background-color: #00000;
    background-image: url('images/BGcolorblue.jpg');
    background-repeat: repeat;
    background-attachment: scroll;
    background-position: top left;
    }

    and guess what the background color? still white!
    how can i change it

    p.s - the BGcolorBlue.jpg is a blue small pixel photo

    thanks
     
    idan_k, Jan 6, 2011 IP
  2. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #2
    background-color: #00000; <-- Hex code should have 6 digits. For Black you can have #000000 or #000
     
    radiant_luv, Jan 6, 2011 IP
  3. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #3
    It is also possible to use background-color: black; ... or white, or red, green, ...

    I am only using hex codes, just to let you know
     
    CSM, Jan 6, 2011 IP
  4. Raymond_M

    Raymond_M Peon

    Messages:
    79
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    is the background image showing up? You may have misspelled it with incorrect capital letters. Also make sure the file is saves as .jpg and not .JPG as that causes problems too
     
    Raymond_M, Jan 8, 2011 IP
  5. metros

    metros Notable Member

    Messages:
    3,978
    Likes Received:
    373
    Best Answers:
    0
    Trophy Points:
    245
    #5
    Idan, This is how it should be:

    CSS: .background{ background-color: #000000; }

    Taken from: http://hex-code.com/000000

    Behatzlaha.
     
    metros, Nov 12, 2012 IP
  6. CoLorZz

    CoLorZz Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    ok so you want to just change the color try this but before the code you should probally put the tag where you want to put the color
    soo say.

    body {
    background-color:red;
    }
    h1 {
    background-color:#ffff00;
    }
    p {
    background-color:
    regb(255,255,0)
    }
     
    Last edited: Nov 13, 2012
    CoLorZz, Nov 13, 2012 IP