SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Thread: Css Background

  1. #1
    SitePoint Member
    Join Date
    Sep 2004
    Location
    Indaina
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Css Background

    I don't why my css background color is not working?
    I tried both bgcolor and background. any ideas?
    Style sheet seems to be working, td font and links setting are working

    Code:
    .body {
    	font-family: Arial, Helvetica, sans-serif;
    	font-size: 12px;
    	line-height: 16px;
    	background:#f00;
    	bgcolor: #FFCC31;
    	color: black;
    }

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Do you have any elements in your HTML page with a class of "body"?

    If you want to style the body with those rules, remove the dot before the word "body" in your CSS file.

  3. #3
    SitePoint Member
    Join Date
    Sep 2004
    Location
    Indaina
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks alot. Removed the dot and its working now.

  4. #4
    SitePoint Wizard
    Join Date
    May 2003
    Location
    Berlin, Germany
    Posts
    1,829
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm, Sam, where do you pull the bgcolor thing from?

  5. #5
    With More ! for your $ maxor's Avatar
    Join Date
    Feb 2004
    Location
    Scottsdale, Arizona
    Posts
    909
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I believe the proper rule is

    Code:
    background-color: #/* whatever */;

  6. #6
    SitePoint Member
    Join Date
    Sep 2004
    Location
    Indaina
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    DarkAngelBGE,

    I was trying different things bcuz css bk color was not working. But bgcolor is wrong.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •