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

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -