How do I format an additional markdown table?
I would like to format a table using markdown extra / html. I would like every other line to have a gray background for readability. Also I would like to set the width of the table. To accomplish the second part, I tried this:
<div style="width:300px">
header 1 | header 2 | header 3
-------- | -------- | --------
row 1 | a | b
row 2 | c | d
row 3 | e | f
</div>
It didn't work. Any suggestions? Thank.
+3
source to share
2 answers