Skip to content

Don't want to admit how long I have been struggling to do this (even with the help of copilot - I can't get it right) #12951

Answered by jimjam-slam
bujayherster asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @bujayherster, I'll break this into two parts!

Firstly, to have your page content expand into the margin and sidebar (if there's no content there already), you'll want to add page-layout: full under format.html, either to your individual document frontmatter or your _quarto.yml (to make it the default). Since you'll have a TOC on the left, content should stay out of there even with this option turned on.

Second, you can use some CSS to colour your headings:

main.content h1
main.content .h1,
main.content h2,
main.content .h2,
main.content h3,
main.content .h3,
main.content h4,.h4,
main.content h5,
main.content .h5,
main.content h6,
main.content .h6 {
  background: red;
  border: 2px so…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@bujayherster
Comment options

@bujayherster
Comment options

Answer selected by bujayherster
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jimjam-slam
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
themes Related to HTML theming or any other style related issue (like highlight-style)
2 participants