Jump to content

Recommended Posts

Posted (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 by 2ilent8cho
Posted (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 by SimonHooker

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...