# [Tex/LaTex] How to place two boxes on the same line

diagramsvertical alignment

I need to place two different boxes on the same line with the word 'and' separating them, if anyone could help it would be much appreciated, thanks.

Something like this:

This is quite 'easy' with the tcolorbox package -- I've defined a special infobox environment -- the parameters can be changed using the optional argument -- the important setup is baseline=3.5mm -- this is most likely to be adapted to the real situation:

\documentclass{article}

\usepackage[most]{tcolorbox}
\begin{document}

\newtcolorbox{infobox}[1][]{%
enhanced,
left=2pt,
nobeforeafter,
width=0.2\textwidth,
colback={white!30!yellow},
box align=center,
baseline=3.5mm,
#1
}

Running text
\begin{infobox}
Info
\end{infobox}
and
\begin{infobox}[colback={yellow!30!white}]
Info
\end{infobox}

\end{document}