7.2 Center section headings

As an application of the methods mentioned in Section 7.1, we can use CSS to adjust the alignment of headings. For example, you may center section headings of level 1, 2, and 3 with the CSS code below:

h1, h2, h3 {
  text-align: center;
}

Please see Section 7.1 on how to apply the CSS to your Rmd document.