marquis Posted January 3, 2007 Share Posted January 3, 2007 how do you set the background color of a table in CSSin html its bgcolor=' ' Link to comment Share on other sites More sharing options...
ste Posted January 3, 2007 Share Posted January 3, 2007 html: <table id="mytable" cellspacing="0" summary="tabular data about #"><tr><th>heading #</th></tr><tr><td>col #</th></tr></table> Css: #mytable { width: 700px; padding: 0; margin: 0; background: #CCC;} Link to comment Share on other sites More sharing options...
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