How to align all rmarkdown rendered HTML text to both side

Hi there, I prefer all text in HTML output justified to both sides instead of aligned to the left side. Could you please teach me how to do it? Thanks a lot.

With HTML, to modify the styling, you need to look into how CSS works.

rmarkdown allows custom CSS

This R book about shiny have an intro to CSS

You could find plenty other resource online.

You then need to find how to justify text in CSS and on which element of the page to apply

Also, you can play with CSS in your browser. For example:

Hope it helps

Thanks a lot Christophe for these detailed read materials. I will dig into them and find the solution.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.