css - Can I use same class name for different elements styles? -
Is the use of the same class name acceptable for different styled elements? For example:
table.dom {background color: # F9FAFA; float right; Degradation: collapse; Display: Inline-block; Width: 352px} th.dom {background-color: # 8FA4AD; Color: #fff; Font-size: .8em; Padding: 8px 0; Border: # 2C3A44; Border width: 1px; Border-style: solid; Width: 88px; } Td.dom {font-size: .7em; Border color: # 313841; Background color: # F9FAFA; Border width: 1px; Border-style: solid; Height: 30px; }
I think if I call 'Dom' class for different elements, then there will be no conflict with it?
Comments
Post a Comment