Hi all,
I'm still feeling my way around CSS. I'm modifying the common.css in a Mediawiki installation. I have a table class called 'wikitable' that sets up gray borders around every cell.
I want to be able to specify in a single 'wikitable' table that some of the cells don't have a right-hand border. eg.
So that there is no border between Cell 1 and Cell 2.
The CSS has:
But it's still showing the border. What do I need to do?
I'm still feeling my way around CSS. I'm modifying the common.css in a Mediawiki installation. I have a table class called 'wikitable' that sets up gray borders around every cell.
I want to be able to specify in a single 'wikitable' table that some of the cells don't have a right-hand border. eg.
Code:
<table class="wikitable">
<tr><td class="nobord">Cell 1<td>Cell2<td>Cell 3
</table>
The CSS has:
Code:
table.wikitable {
margin: 1em 1em 1em 1em;
background: #f9f9f9;
border: 1px #aaa solid;
border-collapse: collapse;
}
table.wikitable th, table.wikitable td {
border: 1px #aaa solid;
padding: 0.2em;
}
table.wikitable th {
background: #f2f2f2;
text-align: center;
}
table.wikitable caption {
margin-left: inherit;
margin-right: inherit;
font-weight: bold;
}
td.nobord {
border-top-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-right-width: 0px;
}
But it's still showing the border. What do I need to do?