SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Jan 2005
    Location
    London
    Posts
    186
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cool bgcolor not working in FireFox....

    Hi There

    Can anyone tell me why FireFox doesn't seem to want to display a background colour? Instead of displaying the cell with a ligh blue background colour it displays it as white. Here is my code:

    <td height="100" bgcolor="bfe1f2"></td>

    It works fine in IE?

    any ideas?

    thanks

  2. #2
    SitePoint Addict Jamieharrop's Avatar
    Join Date
    Mar 2005
    Location
    West Yorkshire, UK
    Posts
    210
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try adding a hash (#) before bfe1f2.

    You should really be using CSS though. See http://www.w3schools.com/css/css_background.asp
    Regards,
    Jamie Harrop

  3. #3
    Object Not Found junjun's Avatar
    Join Date
    Mar 2002
    Location
    northern MI
    Posts
    1,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    bgcolor was removed in 1997. Firefox simply expects valid HTML/CSS
    http://www.w3.org/TR/html401/present....html#h-15.1.1

    Jamie is right of course. Use CSS for styling.


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
  •