I would like to make my table header row with colored text. But if I try to give the text the color green with the \color command it makes ma a linebreak before the text. Only when I use the "p" style for the column. See following example:
Code: Select all
\documentclass[11pt]{article}
\usepackage{array}
\usepackage{color}
\begin{document}
\begin{table}[H]
\begin{tabular}{p{0.13\textwidth} p{0.75\textwidth}}
\hline
\color{green}Header 1 & Header 2 \\
\hline
Row 1 & Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat \\
Row 2 & Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat \\
\end{tabular}
\end{table}
\end{document}
Does anyone has an idea to get rid of the newline?
Thank you very much and greets,
aquasonic