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. Quote 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"; } Quote 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 Quote 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. Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/77352-solved-colour-coded-tables/#findComment-391619 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.