How can I get borders on my tables?
sammefford opened this issue · 2 comments
sammefford commented
Also, how can I get my table cells to align top vertically?
Deleted user commented
I would have the same questions. Alternative, how I can I specify or add my own stylesheet to do that?
Rea2 commented
I faced the same issue:
Standard CSS file has issues with them.
I solved it:
- copied stylesheet.8.css from markdown-doclet-1.4.jar
- added at the end of the file
.block table,.block tr ,.block th ,.block td {
border: 1px solid black;
border-collapse: collapse;
}
I am not good at CSS, but it works :)
}
- added tag <stylesheetfile with to updated css file to the plugin configuration:
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9</version>
<configuration>
<doclet>ch.raffael.mddoclet.MarkdownDoclet</doclet>
<docletArtifact>
<groupId>ch.raffael.markdown-doclet</groupId>
<artifactId>markdown-doclet</artifactId>
<version>1.4</version>
</docletArtifact>
<stylesheetfile>updated_stylesheet.8.css</stylesheetfile>
<useStandardDocletOptions>true</useStandardDocletOptions>
</configuration>
</plugin>