Tx · LaTeX & TikZ

How Can I Move the Second Block in a Beamer Column Down?

Published By the 9to5Science editorial team

At a glance

  1. 1. Find the block

    Locate the second block environment inside the Beamer column.

  2. 2. Add vertical space

    Insert a vertical skip before the second block, such as vspace with a length of 8 mm.

  3. 3. Adjust and compile

    Change the length until the spacing looks right, then check that the column still fits on the slide.

Advertisement

If you mean three Beamer block environments stacked in one column, add vertical space immediately before the second block. A command such as \vspace{8mm} moves that block and the content after it down by the specified amount.

Add space before the second block

Place \vspace{...} between the first and second block environments. Here is a complete example you can compile with a standard LaTeX installation; Beamer is the document class, so no extra package is needed.

\documentclass{beamer}

\begin{document}

\begin{frame}{Three blocks in a column}
  \begin{columns}[T]
    \begin{column}{0.7\textwidth}
      \begin{block}{First block}
        This is the first block.
      \end{block}

      \vspace{8mm}

      \begin{block}{Second block}
        This block starts lower than it would without the vertical space.
      \end{block}

      \begin{block}{Third block}
        This is the third block.
      \end{block}
    \end{column}
  \end{columns}
\end{frame}

\end{document}

The 8mm is the added vertical gap. Try a smaller or larger value, such as 4mm or 12mm, to get the placement you want. The [T] option aligns the columns at their tops; it does not set the spacing between blocks.

Use flexible space instead

\vfill is stretchable, but it expands only when its containing box has a fixed height. A normal Beamer column has natural height, so \vfill between blocks in an ordinary column does not necessarily push the second block down. To provide a fixed height for the flexible space, you can put the blocks in a fixed-height minipage:

\begin{column}{0.7\textwidth}
  \begin{minipage}[t][0.8\textheight][t]{\linewidth}
    \begin{block}{First block}
      First block content.
    \end{block}

    \vfill

    \begin{block}{Second block}
      Second block content.
    \end{block}
  \end{minipage}
\end{column}

Here \vfill expands to use the available space in the fixed-height minipage, provided the content fits. The result depends on the chosen height and the slide content.

What happens to the third block?

Beamer lays out these blocks in the order they appear. Adding space before the second block shifts both the second and third blocks down. If you need the second block lower while keeping the third in exactly the same position, you must also revise the spacing after the second block or use a layout that positions elements independently. Simply adding space before the second block does not move it in isolation.

Check that the last block still fits on the slide. If the column becomes too tall, reduce the added space, shorten the content, or adjust the slide layout rather than forcing elements to overlap.

Common mistakes

  • Putting the command inside a block: To add a gap between blocks, put \vspace{...} after \end{block} for the first block and before \begin{block} for the second.
  • Using \hspace: That changes horizontal spacing. Use \vspace for vertical spacing.
  • Expecting only the second block to move: In ordinary vertical flow, everything after the added space moves too.
  • Adding too much space: A block pushed past the bottom of the frame may be clipped or make the slide look crowded. Compile and inspect the result after each adjustment.

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.