bit by color via lazy css

Posted by joy


At work, because I’m doing more concept and presentation rather than straight on Web dev, my markup and CSS are optimized for churning out ideas of “can we do it?” rather than cross-browser rendering. Also, I write markup and CSS by hand, and the simple editor I use doesn’t correct for small idiocyncrasies.

So I was caught surprised when I found out my lazy way to express background color in a td tag wasn’t working properly in Firefox. Worked fine in IE6 though.

lazy way: bgcolor=”cc0099″

cross browser rendering: bgcolor=”#cc0099″

The problem? I neglected to add a #sign to the hex color. This method namely wasn’t working in table cells. In my markup I wasn’t seeing issues with font-color and it didn’t matter if it was HTML bgcolor or CSS background.


Leave a Reply