title: Markdown > html : Centering a table caption
body: <ul>
  <li>How can I center the caption of a table in Markdown to html with <code>kable</code> ? </li>
  <li>Is there anyway to put the caption below the table ?</li>
  </ul>
  
  <p>I am using <code>kable</code> and <code>kable_styling</code></p>
  
  <pre><code>        aaa = matrix(c(1,2,3,4,5,6), nrow = 3)
          print(kable_styling(kable(xtable(aaa), 
      caption = "A very very very very long caption that should be centered 
     rather than left aligned",  col.names = c("col1","Col2"), 
     digits= 2, format = "html", align = "c", 
     row.names = FALSE, booktabs = TRUE), bootstrap = 'striped', full_width = T))
  </code></pre>
  
  <p>I tried to adapt what was suggested <a href="https://stackoverflow.com/questions/56951752/kabel-caption-in-rmarkdown-file-in-html-in-bold">here</a> by adding <code>&lt;center&gt;</code>before the caption. The caption was centered but the label "Table ... : " was not.</p>
  
  <p>Thanks :-)</p>