:
: : > Hi, I have the next classes in a .css file:
: >
: > .tabelgeenborder {
: > table {border: 0}
: > td {border:0}
: > }
: > .vebrotabel {
: > table {border: 1px solid red;border-collapse:collapse}
: > td {border: 1px solid red}
: > }
: >
: > Only the second definition is recognized. If I use tabelgeenborder
: nothing
: > happens. Is this a bug or am I doing something wrong?
: >
: > Thanx
: >
: > Frank
: >
: >
: Rob and Sid, It doesn't make a difference how I do it, it does not work.
: Example below. Notice that I used 2 tables with div and two with class= in
: the <table>.
: I want a definition for a table with border and one without. Strangest is
: that if you switch the classes in place in the <style> the outcome is
: totally different! How can that be!!
:
: Regards
: Frank
:
: <style TYPE="text/css" MEDIA=screen>
: .tabnoborder table{border: 0}
: td {border: 0}
: .tabwithborder table{border: 1px solid red}
: td {border: 1px solid red}
: </style>
: <div class="tabwithborder">
: <table>
: <tr> <td>wdshgkdjfh gkjhgfkjhfgskjfh</td>
: <td>kjhv khgf hgfgh</td>
: </tr>
: <tr> <td>wdshgkdjfh gkjhgfkjhfgskjfh</td>
: <td>kjhv khgf hgfgh</td>
: </tr>
: </table></div>
: <div class="tabnoborder"><br>
: <table>
: <tr> <td>wdshgkdjfh gkjhgfkjhfgskjfh</td>
: <td>kjhv khgf hgfgh</td>
: </tr>
: <tr> <td>wdshgkdjfh gkjhgfkjhfgskjfh</td>
: <td>kjhv khgf hgfgh</td>
: </tr>
: </table></div><br>
: <table class="tabwithborder">
: <tr> <td>wdshgkdjfh gkjhgfkjhfgskjfh</td>
: <td>kjhv khgf hgfgh</td>
: </tr>
: <tr> <td>wdshgkdjfh gkjhgfkjhfgskjfh</td>
: <td>kjhv khgf hgfgh</td>
: </tr>
: </table><br>
: <table class="tabnoborder">
: <tr> <td>wdshgkdjfh gkjhgfkjhfgskjfh</td>
: <td>kjhv khgf hgfgh</td>
: </tr>
: <tr> <td>wdshgkdjfh gkjhgfkjhfgskjfh</td>
: <td>kjhv khgf hgfgh</td>
: </tr>
: </table>
:
See:
http://www.elsid.co.za/testing/testcss.html
Sid