I save the css file which contains :

table {
  border:thick;
  border-style:outset
}

But i just want to use it on one/two table, not all. ie:

<body>
<!-- table with css -->
<table>
  <tr><td>Name</td></tr>
</table>

<!-- table without css -->
<table>
  <tr><td>Class</td></tr>
</table>
</body>

How could i do that ?:?:

Recommended Answers

All 2 Replies

MoreCrab,

You're in the wrong forum, but here's the answer:

<table class="thickBorders">
<tr><td>Name</td></tr>
</table>
.thickBorders {
    border:thick;
    border-style:outset
}

Airshow

Yupp, it works.

Thanks a lot,-

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.