Skip to content
Discussion options

You must be logged in to vote

You should just use a CSS selector that target exactly what you need to justify.
using this is too large

body {
  text-align: justify;
}

Use a browser inspector to open the source of your page, and find the HTML element you really want to style.

You could try something like

main {
  text-align: justify;
}

which would already not target the sidebar

You could also be more precise like

main p {
  text-align: justify;
}

I would suggest

  • Learning a bit more about CSS and its selector
  • Learning to use the browser inspector to look for current CSS rules, play with adding new one, and help know what to target

A good url to learn a bit more about all this: https://rstudio4edu.github.io/rstudio4edu…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
listings themes Related to HTML theming or any other style related issue (like highlight-style)
1 participant