Why does this work?
<table border=1>
And this doesn't?
<table style="border-width:1px;border-color:black">
I get the same result in Chrome and in IE9.
The syntax for the CSS border-width property (with 2 values) is: border-width: top_bottom left_right; When two values are provided, the first value will apply to the top and bottom of the box. The second value will apply to the left and right sides of the box.
Go to Table Tools >Design > Table Styles > Borders, and then click the border option that you want to change.
Doing borders on tables with css is a bit more complicated (but not as much, see this jsfiddle as example):
table { border-collapse: collapse; border: 1px solid black; } table td { border: 1px solid black; }
<table> <tr> <td>test</td> <td>test</td> </tr> </table>
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