2ilent8cho Posted March 24, 2017 Posted March 24, 2017 (edited) Its been years since i did anything with PHP or HTML really, i've got a very small PHP file that just outputs some dates and i just want the background to be blue in those cells/tables. I thought using a CSS would be over kill to specify just 1 change. I just cannot seem to get the syntax correct. Can anyone show me how to change the 2 lines to have the background a different colour? echo ' ',$months[$curmonth],' '; echo ' Date Start Time Category Description '; Edited March 24, 2017 by 2ilent8cho
danbuntu Posted March 24, 2017 Posted March 24, 2017 you can use bgcolor : January but you imho you really should use CSS. Things often start small and then grow. 1
zag Posted March 24, 2017 Posted March 24, 2017 Yes always use CSS. Styling things inline is rather an old way of doing things.
SimonHooker Posted March 27, 2017 Posted March 27, 2017 (edited) If you must do it inline, please at least use a CSS inline style. As of HTML 5, bgcolor is no longer supported. I doubt browser support is likely to disappear any time this century, but still CSS is the way to go for this. January Edited March 27, 2017 by SimonHooker
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now