-
DescriptionI have modified the the styles.css to justify the text of the body. The problem with this is that it also justifies the table of contents (toc) and also the listing of my posts. I would like to maintain the default alignment of the text in the toc (aligned to the left, not justified) and the same for the listing. I have searched here and in some forums but I have not found the way of doing that. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You should just use a CSS selector that target exactly what you need to justify. 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
A good url to learn a bit more about all this: https://rstudio4edu.github.io/rstudio4edu-book/css-crash.html |
Beta Was this translation helpful? Give feedback.
You should just use a CSS selector that target exactly what you need to justify.
using this is too large
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
which would already not target the sidebar
You could also be more precise like
I would suggest
A good url to learn a bit more about all this: https://rstudio4edu.github.io/rstudio4edu…