otuatail Posted November 14, 2007 Share Posted November 14, 2007 I am trying to create a colour coded table newsboard similar to these with pinnable at the top. I cant get the background colur to change but the font is changing ok. <tr id="des"> // works for the font but not the background The CSS is this #des { FONT-WEIGHT: bold; FONT-SIZE: 16pt; COLOR: Orange; FONT-FAMILY: 'Monotype Corsiva'; bgcolor="#ffffcc"; } The font changes to orange only. Desmond. Link to comment https://forums.phpfreaks.com/topic/77352-solved-colour-coded-tables/ Share on other sites More sharing options...
ToonMariner Posted November 14, 2007 Share Posted November 14, 2007 try... tr#des td { FONT-WEIGHT: bold; FONT-SIZE: 16pt; COLOR: Orange; FONT-FAMILY: 'Monotype Corsiva'; bgcolor="#ffffcc"; } Link to comment https://forums.phpfreaks.com/topic/77352-solved-colour-coded-tables/#findComment-391606 Share on other sites More sharing options...
otuatail Posted November 14, 2007 Author Share Posted November 14, 2007 No that dosn't make any diffrence http://www.des-otoole.co.uk/news/ Desmond Link to comment https://forums.phpfreaks.com/topic/77352-solved-colour-coded-tables/#findComment-391612 Share on other sites More sharing options...
ToonMariner Posted November 14, 2007 Share Posted November 14, 2007 oh my bad didn't notice it... bgcolor is NOT a valid css attribute... tr#des td { FONT-WEIGHT: bold; FONT-SIZE: 16pt; COLOR: Orange; FONT-FAMILY: "Monotype Corsiva"; background= #ffffcc; } you could even use the short cut hex code #ffc; you don't need quotes arount css values UNLESS its a fint name with a space in it. Link to comment https://forums.phpfreaks.com/topic/77352-solved-colour-coded-tables/#findComment-391615 Share on other sites More sharing options...
otuatail Posted November 14, 2007 Author Share Posted November 14, 2007 Your brilliant pints on me Desmond Link to comment https://forums.phpfreaks.com/topic/77352-solved-colour-coded-tables/#findComment-391619 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.