I have to draw solid lines as border.
I am using this loc
<fo:table border="solid 0.1mm black">
but it draws only surrounded lines. It is not applied to all cells and rows. Is it possible to draw solid lines as borders with minimum coding, like not setting borders for cell and rows separately as:
<fo:table-row border="solid 0.1mm black">
Complete HTML/CSS Course 2022 To create table border in HTML, the border attribute was used. But the introduction of HTML5, deprecated the border tag. Create table border using the CSS property border. Set table border as well as border for <th> and <td>.
Add borders to a whole table or to selected table cells. Click the table or select the cells to which you want to add borders. On the Tables tab, under Draw Borders, click Borders, and then click the borders that you want.
Go to Table Tools >Design > Table Styles > Borders, and then click the border option that you want to change.
Add the border
attribute to all table-cell
elements. You can see here that borders are not inherited: http://www.w3.org/TR/xsl11/#border
While it doesn't save any typing, you could help future support of your stylesheet by using attribute sets:
<xsl:attribute-set name="myBorder">
<xsl:attribute name="border">solid 0.1mm black</xsl:attribute>
</xsl:attribute-set>
...
<fo:table-cell xsl:use-attribute-sets="myBorder">
...
Then, when you need to change all, you just change it in one place.
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