I currently have a simple colorbox, I would like to increase its height. Is there a way to set a fixed height, or maybe a kind of padding? I added \hspace to add some space horizontally, but a \vspace has no effect.
I have package xcolor imported.
It is currently in a minipage as I want this text to be next to a logo. I am relatively new to LaTeX, there might beginner errors.
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{myclass}
\LoadClass[11pt,a4paper,final]{memoir}
\RequirePackage{xcolor}
\RequirePackage[pdftex]{graphicx}
...
\renewcommand{\maketitle}{
\begin{minipage}{0.45\textwidth}
\includegraphics{logo}
\end{minipage}
\begin{minipage}{0.45\textwidth}
\raggedleft
\colorbox{red}{
\hspace{0.5cm}
{\color{white}\large My text }
\hspace{0.5cm}
}
\end{minipage}
}

\documentclass{...}, the required\usepackage's,\begin{document}, and\end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem. – Stefan Pinnow Aug 12 '19 at 14:08