Set your default table settings first, then set specific styles with a class:
Css:
table {
margin:….;
border:….;
etc.
}
table.pad1 {
margin:….;
padding:….;
}
table.pad2 {
margin:….;
padding:….;
}
Html:
<table class="pad1">
Yadda, yadda
</table>
<table class="pad2">
Yadda, yadda
</table>
Edit: Ninja’d by the OP!! Lol
IDs work too, but each ID has to be unique; you would have to give the CSS styling for EACH ID on your style sheet. With classes you can have multiples with the same styling … streamlined you CSS sheet.
Last edited by Turtle91; 07-18-2022 at 01:12 PM.
|