Need help with CSS to resolve home page problem

Discussion in 'CSS' started by Alevoor, Dec 29, 2008.

  1. #1
    I have a website which I made using a tool as I don't know much about CSS or JavaScript. I am pretty well placed with html, though.

    The problem is I want to change the body background color (bgcolor) of home page. I did it in the CSS portion but it didn't work somehow. I want it to be consistent in color combination with other pages which is not the case now.

    I hope it is clear what I want. Please PM me for any clarification.
    I appreciate any help.
    Thanks very much.
     
    Alevoor, Dec 29, 2008 IP
  2. tarponkeith

    tarponkeith Well-Known Member

    Messages:
    4,758
    Likes Received:
    279
    Best Answers:
    0
    Trophy Points:
    180
    #2
    I'm half asleep, but is this what you're looking for:

    body { background-color: #000; }

    put that in the external css file and it should turn all your page backgrounds to black...
     
    tarponkeith, Dec 29, 2008 IP
  3. Ulquiorra

    Ulquiorra Peon

    Messages:
    422
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Bad design. You are supposed to link to an external CSS file to make it apply to all pages that link to it.

    Too many of your elements have styles applied inline, which will override any css you choose to apply.

    Take care of those two and it should work.
     
    Ulquiorra, Dec 29, 2008 IP
  4. Alevoor

    Alevoor Active Member

    Messages:
    1,573
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    80
    #4
    How would I know that it is bad unless I know some CSS or JavaScript myself? Nevertheless, I got your point. Now I should get someone to do this for me.
     
    Alevoor, Dec 29, 2008 IP
  5. Ulquiorra

    Ulquiorra Peon

    Messages:
    422
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You would know because I told you. I wouldn't tell you if I thought you knew.

    Sorry if I appear condescending :)
     
    Ulquiorra, Dec 29, 2008 IP
  6. Alevoor

    Alevoor Active Member

    Messages:
    1,573
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    80
    #6
    Not at all. You are welcome.
     
    Alevoor, Dec 29, 2008 IP