You need to sign in to do that
Don't have an account?
Martin Chalot 15
Multi Column Body with Visualforce (renderAs PDF)
Hi,
I'm trying to write my text inside one block.
Example, I have this :
I've tried to use the CSS (column-count, column-width) but nothing seems to be working. He doesn't understand this specific CSS. I tried on a basic HTML page and the render is as I want it so I'm guessing it's coming from restricted CSS rules about VF pages.
Can you help me ?
Thanks,
Best regards,
Martin
I'm trying to write my text inside one block.
Example, I have this :
<div> AAA BBB CCC DDD </div>And I want the visualforce page to render it this way :
AAA CCC BBB DDDThe text "AAA BBB CCC DDD" would be a long area field. And I need to display it on two columns when rendering as PDF.
I've tried to use the CSS (column-count, column-width) but nothing seems to be working. He doesn't understand this specific CSS. I tried on a basic HTML page and the render is as I want it so I'm guessing it's coming from restricted CSS rules about VF pages.
Can you help me ?
Thanks,
Best regards,
Martin
In your block, you can write the data inside <p> tag, you want to display on separate columns. and give the id to the <div> tag
like this.
and then,
Try to add this to your css:
OR
you can give inline CSS like this to each <p> tag
Hope it will help you, if it helps you, kindly mark this answer as solved.
Regards
Suraj
Maybe wrap it inside @page body content it would work. I'm going to try.
Regards,
Martin