The Little Guy
01-06-2004, 10:08 PM
Ok... how do you set background colors for individual cells in a table?
|
Click to See Complete Forum and Search --> : Cell coloring The Little Guy 01-06-2004, 10:08 PM Ok... how do you set background colors for individual cells in a table? Paul Jr 01-06-2004, 10:23 PM Originally posted by The Little Guy Ok... how do you set background colors for individual cells in a table? You could use the good ol' deprecated, incorrect method: <td bgcolor="#FF0000">WEE!</td> Or the correct CSS method: <td style="background-color:#FF0000;">WEE!</td> That would be using inline styles. You can visit this link (http://www.w3schools.com) for more information on CSS, which is a very good idea. The Little Guy 02-09-2004, 08:10 PM How do you get the border of cells to be a certain color? Ben Rogers 02-09-2004, 08:17 PM CSS again, you really shluld look into it, it's just so useful, and makes so many things so much easier. <td style="border: *px *style *color">WEE!</td> You seperate rules with a semicolon (;) so style="border: *px *style *color; background: *background values" yeah, and change the *before px to something around 3,4 sumtin like that px are really small, but big borders are pret-tay ugly. ok, style rule i said defunes the different kinds of borders, either solid, dotted, dashed, double, inset, outset, groove... those are all the ones i know. change color to a hex value (i.e.: #e3372e) or normal (i.e.: red, blu,e yellow, black). k? webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |