html - CSS styling for all cells in a table -


i want apply style cells (td elements) inside given table, , not other tables. there way in css without having specify class each td in table want apply style to?

for example, let's want make cells in particular table have padding of 3px on 4 edges. every td declare:

td { padding: 3px 3px 3px 3px; } 

problem: applies every single td on page. want apply single, named table, or alternatively, tables of given class.

any ideas?

#sometable td { padding: 3px 3px 3px 3px; } 

this apply style specific table

.sometable td { padding: 3px 3px 3px 3px; } 

this apply change tables given class


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -