The following code shows that a \color{red} command increases the height of a tabular cell.
I want to use a switch, not a command as \textcolor{red}{text}.
\documentclass{article}
\usepackage{xcolor}
\usepackage{float}
\begin{document}
\begin{table}[H]
\begin{tabular}{*{2}{p{0.45\textwidth}}}
\hline
\color{red} header &
header \tabularnewline
\hline
%
content & content \tabularnewline
content & content \tabularnewline
content & content \tabularnewline
\hline
\end{tabular}
\end{table}
\end{document}

How can I work around this problem?

\colorcommand doesn't switch to LR-mode, since it's useful also between paragraphs; however in apcolumn it defeats the boxing mechanism because when the paragraph starts, as soon as TeX scans thehin "header", the vertical list is not empty. Issuing\leavevmodecures the problem by starting a paragraph itself. – egreg Oct 14 '11 at 10:22