Change the title page format R markdonw ioslides

I want to change the appearance of the very first title page that appears when we knit html my ioslides. This is the header of the Rmd test file:

    ---
    title: This test
    subtitle: that test
    author: jake
    output: 
       ioslides_presentation:
       incremental: true
       css: myCss4.css
    ---

      

I want to center the heading (default is bottom left corner) and change the font color and size. I was able to change the font color and size, but not the location of the text ....

This is the custom css I have tried:

    slides > slide.title-slide hgroup h1 {
      font-weight: bold;
      font-size: 24pt;
      color:red;
      bottom: 50%;
    }

      

I've tried bottom: 50% ;, top = 50% and a few other things with no success ... The location of the text doesn't change. What am I coding? Or is there a better way instead of css?

+3


source to share


1 answer


Try using the following:



slides > slide.title-slide hgroup h1 {
  font-weight: bold;
  font-size: 24pt;
  color: red;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

      

+5


source







All Articles