You need to sign in to do that
Don't have an account?
Yishay Haspel 10
writing-mode doesn't work in render as pdf
Hi,
We have a vf page with vertical table headers.
It save perfectly to PDF, but the renderAs=pdf doesn't align them vertically.
Did anybody got this problem?
Thanks,
Yishay
We have a vf page with vertical table headers.
It save perfectly to PDF, but the renderAs=pdf doesn't align them vertically.
Did anybody got this problem?
.vertical-heading p { writing-mode: vertical-lr; -webkit-writing-mode: vertical-lr; -ms-writing-mode: vertical-lr; filter: flipH() flipV(); margin: 0 auto; } <table> <thead> <tr> <th class="vertical-heading"><p>Demo</p></th> </tr> </thead> </table>
Thanks,
Yishay
Please make some changes in your code it will start working. Use your css code in <html></html> tag.
<apex:page renderAs="pdf" standardStylesheets="false" showHeader="false" applyBodyTag="false">
<html>
<style type="text/css">
.vertical-heading p {
writing-mode: vertical-lr;
-webkit-writing-mode: vertical-lr;
-ms-writing-mode: vertical-lr;
filter: flipH() flipV();
margin: 0 auto;
}
</style>
<table>
<thead>
<tr>
<th class="vertical-heading"><p>Demo</p></th>
</tr>
</thead>
</table>
</html>
</apex:page>
Please mark as best answer if it helps you.
Thank you.
Akshay