One thing I do to avoid conflicts and keep the number of classes down is give each body tag an id. Then I can use those as limiting selectors to restrict the scope of my rules. Example, you have a Contact Us page, and a Products page. Products gets:
<body id="products">
And Contact Us gets
<body id="contactus">
Each page can have a table with the same class, and in your CSS, you'd just put the id in front of the rules.
#products table.myitemlisttable {
width: 100%;
margin: 10px auto;
padding: 0px;
border: 0px;
border-collapse: collapse;
background-color: rgba(0, 0, 0, .7);
}
#contactus table.myitemlisttable {
width: 100%;
margin: 10px auto;
padding: 0px;
border: 0px;
border-collapse: collapse;
background-color: rgba(255, 255, 255, .7);
}
You could even find things that are consistent on all pages, and pull them out to save lines.
table.myitemlisttable {
width: 100%;
margin: 10px auto;
padding: 0px;
border: 0px;
border-collapse: collapse;
background-color: rgba(0, 0, 0, .7);
}
#products table.myitemlisttable {
background-color: rgba(0, 0, 0, .7);
}
#contactus table.myitemlisttable {
background-color: rgba(255, 255, 255, .7);
}