Question about bgcolor in HTML

Collapse

Recommended Videos

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kblu54
    MVP
    • May 2008
    • 2732

    #1

    Question about bgcolor in HTML

    I'm having some trouble using bgcolor in my HTML tables. Certain colors like "orange" or "ff6600" or any shade of brown or gold doesn't show up properly. After I post, the table cell comes up with a green or light blue color instead of orange. Can anybody tell me why this happens and how I can fix it?
    KB's All-CAW Universe

    OS Thread Link - Website Link
  • dynastynation
    Pro
    • Jan 2009
    • 584

    #2
    Re: Question about bgcolor in HTML

    Originally posted by kblu54
    I'm having some trouble using bgcolor in my HTML tables. Certain colors like "orange" or "ff6600" or any shade of brown or gold doesn't show up properly. After I post, the table cell comes up with a green or light blue color instead of orange. Can anybody tell me why this happens and how I can fix it?
    It's best to put a # in front of the hex code because I've noticed some browsers will read it properly with or without it, but others are picky. Also, I've noticed so many people that will never use quotation marks around their tags... again, some browsers are picky about this, so it's best to do it.

    So for example, I'll write up a small html code here for you...

    HTML Code:
    <table align="center" cellpadding="3" cellspacing="0" width="575"><tr><td align="left" bgcolor="#FF6600" width="50%"><font color="#FFFFFF" face="verdana" size="1"><b>Orange BG/text aligned to the left</b></font></td><td align="right" bgcolor="#000000" width="50%"><font color="#FFFFFF" face="verdana" size="1"><b>Black BG/text aligned to the right</b></font></td></tr></table>
    Orange BG/text aligned to the leftBlack BG/text aligned to the right
    Last edited by dynastynation; 03-31-2010, 12:44 PM.

    Comment

    Working...