When I redefine a tag (table) to have a blue border, is-it possible to have on the same page a table with a blue border and one that do not have a blue border. I changed the color but this doesn't do anything.
I will appreciate a hint on this.
Thanks
You can create a separate class for the second table. But it is a good thing to use classes instead of rewriting the behaviour of a common element if you do not want to have all elements behave in that manner. So I would suggest classes for both tables. But here's the class example for one:
Code:
<style type="text/css">
table {
border: 1px solid blue;
}
.redTable {
border: 1px solid red;
}
</style>
<table>
<tr>
<td>I have a blue border.</td>
</tr>
</table>
<table class="redTable">
<tr>
<td>I have a red border.</td>
</tr>
</table>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.