# Inserting a table with photos in each cell

I would like to insert a table in each cell in overleaf, like the following:

## bumped to the homepage by Community♦2 days ago

This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

• what did you try? this looks like the most basic tabular, with three \includegraphics ? – David Carlisle Mar 22 at 18:16
• @DavidCarlisle But I want "lines" of the table frame that separate them – Mathygroupy Mar 22 at 18:21
• any latex tutorial will show how to make a lined table (\hline for horizontal lines and \begin{tabular}{|c|c|c|} for vertical.) It is always best to show a complete small test document than people can explain any errors that you get. – David Carlisle Mar 22 at 18:25
• @DavidCarlisle okak, thanks! I will try doing it now – Mathygroupy Mar 22 at 18:31

The following might serve as a starting point:

| and \hline are used for vertical and horizontal lines respectively. The cellspace package allows for a uniform white border surrounding the image.

\documentclass{article}
\usepackage{graphicx}
\usepackage{cellspace}
\setlength\cellspacetoplimit{6pt}
\setlength\cellspacebottomlimit{6pt}

\begin{document}
\begin{tabular}{|Sc|}
\hline
\includegraphics[width=3cm]{example-image} \\
\hline
\end{tabular}
\end{document}