waay2kool 0 Posted January 2, 2014 Report Share Posted January 2, 2014 I have a page that uses the <table> attribute 3 times, but want to apply my css to only one of the tables. How do I specify just one of the tables for these attributes? Quote Link to post Share on other sites
davej 251 Posted January 2, 2014 Report Share Posted January 2, 2014 (edited) Tables are elements, not attributes. There are several ways to do that. The most ordinary way would be to add a class to the desired table. table.special{border:1px solid #444;background-color:#bbb;} <table class="special"><tr><th></th></tr>[...] ...or you could look at advanced selectors... http://www.w3schools.com/cssref/css_selectors.asp Edited January 2, 2014 by davej Quote Link to post Share on other sites
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.