i need to implement next layout:
here's my code:
<fo:block text-align="center">United Nations Organisation</fo:block>
<fo:block border-top-style="solid" text-align="center">(organisation)</fo:block>
<fo:block border-top-style="solid" text-align="center">(department)</fo:block>
but in fact the 2nd horizontal line is not drawn. how can i achieve that? what am i doing wrong?
Thanks in advance!
You can use fo:leader
<fo:block text-align="center">United Nations Organisation </fo:block>
<fo:leader leader-pattern="rule" leader-length="100%" rule-style="solid" rule-thickness="2pt"/>
<fo:block text-align="center" font-size="8pt" margin-top="1mm">(organisation)</fo:block>
<fo:leader leader-pattern="rule" leader-length="100%" rule-style="solid" rule-thickness="2pt"/>
<fo:block text-align="center" font-size="8pt" margin-top="1mm">(department)</fo:block>
You can play with the border-bottom-width
and the border-bottom-style
.
I changed the margin-top
to match your example.
<fo:block
border-bottom-width="2pt"
border-bottom-style="solid"
border-bottom-color="black"
font-weight="bold"
text-align="center">
United Nations Organisation
</fo:block>
<fo:block text-align="center" font-size="8pt" margin-top="1mm">
(organisation)
</fo:block>
<fo:block border-bottom-width="2pt" border-bottom-style="solid"margin-top="7mm">
</fo:block>
<fo:block text-align="center" font-size="8pt" margin-top="1mm">
(department)
</fo:block>
Hope this helps.
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