I want to create a html table with a 1pt black outer border and the same border around every td.
Should look like this (only the borders, of course)
I use
<table border="1" style="border-collapse:collapse; border-color:Black; border-style:solid; border-width:1pt">
As a result I get a black outer, but grey inner borders.
With the border-color property, you can set the color of the border.
border-bottom-style. border-left-style. border-right-style.
Go to Table Tools >Design > Table Styles > Borders, and then click the border option that you want to change.
Right-click the table, and then click Format Table. In the Format Table dialog box, under Fill, move the Transparency slider to get the percentage of transparency you want.
You could try implement something like this in your CSS stylesheet.
.mytable
{
border-collapse:collapse;
border-color:#000000;
border-style:solid;
border-width:2px;
}
.mytable td
{
border-color:#cccccc; /*grey*/
border-style:solid;
border-width:1px;
}
And something like this HTML:
<table class="mytable">
<tr>
<td>Content</td>
</tr>
</table>
Example here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With