Skip to content
Discussion options

You must be logged in to vote

The easy part is to get vertically centered the columns contents (not vertically centered in the slide though).

  1. Columns vertically aligned to the top but content of the columns vertically centered

    See Quarto code + CSS
    /* file: style.css */
    #vcenter {
      vertical-align: middle;
    }
    ---
    title: "Untitled"
    format:
      revealjs:
        css: style.css
    ---
    
    ## Quarto
    
    :::: {.columns}
    
    ::: {.column #vcenter width="50%"}
    
    This
    
    is
    
    column 
    
    1
    
    :::
    
    ::: {.column #vcenter width="50%"}
    This is
    
    column 2
    :::
    
    ::::
    
  2. Columns and content vertically centered
    The tricky part is now to vertically centered <div class="columns">...</div> which is nested in a div with display: block;.

    See Quarto code + CSS
    /* …

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@shannonpileggi
Comment options

Answer selected by shannonpileggi
Comment options

You must be logged in to vote
6 replies
@michaelschulte
Comment options

@mcanouil
Comment options

@michaelschulte
Comment options

@mcanouil
Comment options

@michaelschulte
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
revealjs Issues with the revealjs format
3 participants