If you have multiple tables in your HTML file, then to style a particular tabel
put that particular table in a 'div' and give it a 'class name'
The CSS code will be:
div.dates table, div.dates th, div.dates td {
border: 1px solid black;
padding: 20px;
text-align: center;
border-collapse: collapse; }
Output:
source: https://stackoverflow.com/questions/632100/apply-css-style-to-child-elements
put that particular table in a 'div' and give it a 'class name'
The CSS code will be:
div.dates table, div.dates th, div.dates td {
border: 1px solid black;
padding: 20px;
text-align: center;
border-collapse: collapse; }
Output:
source: https://stackoverflow.com/questions/632100/apply-css-style-to-child-elements
No comments:
Post a Comment