waay2kool Posted January 2, 2014 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? Link to comment Share on other sites More sharing options...
davej Posted January 2, 2014 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 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