en WordPress.com Forums › Support Table background not colored? Author Posts September 19, 2011 at 11:46 am #710004 morteniversen82Member Hi, my blog is http://www.mandmigop.dk I use a pice of code for getting my visitors to subscribe, it’s a table. (se it at the top here http://mandmigop.dk/2011/09/12/sig-fra/) In my html I set the background color for orange, in my editor its orange… on my blog it’s white… why? Can I fix it? /Morten The blog I need help with is mandmigop.dk. September 19, 2011 at 1:17 pm #710124 1tessModerator Emeritus Instead of this: <td style="text-align:center;" bgcolor="orange"> use this: <td style="text-align:center;background-color:orange;"> September 19, 2011 at 3:56 pm #710168 morteniversen82Member Ill try that. Thanks September 19, 2011 at 5:36 pm #710201 morteniversen82Member It works – thanks. September 19, 2011 at 5:56 pm #710214 panaghiotisadamMember You’ll have better control if you use hex color codes instead of basic color names. And you’re using outdated coding; these things don’t work: width="100%" border="2" cellspacing="0" cellpadding="0" Your table should be like that: <table style="border:2px solid #HEX;"> <tr> <td style="text-align:center;background-color:#HEX;"> CONTENT HERE </td> </tr> </table> Replace HEX with the colors you prefer. Good palettes here: http://www.december.com/html/spec/color.html If you wish to change the padding, you must add it to the td style. Specifying a 100% width is superfluous, as it’s the default in the theme you’re using. September 19, 2011 at 8:36 pm #710281 morteniversen82Member Thx, IM not a coder. Found the one I’m using on a forum But what if I change theme later. Still no need for 100%? September 19, 2011 at 8:45 pm #710282 panaghiotisadamMember Depends on the theme. If you need it, you write: <table style="width:100%;border:2px solid #HEX;"> Author Posts The topic ‘Table background not colored?’ is closed to new replies.