# Who can solve my text positioning problem in my colored tabu header row?

I've a positioning problem in my tabu header. If I define the text color with rowfont, the text in that row will jumping around like a rabbit.

\documentclass[]{scrlttr2}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage{colortbl}
\usepackage{tabu}
\usepackage{xcolor}

\begin{document}
\begin{tabu} to \textwidth {c X}
\taburowcolors{white .. white}
Bla & bla \\ \hline
Footer & bla
\end{tabu}

\end{document}


The resoult is the following:

# Update

According to Gonzalo Medina's answer I did this changes:

\begin{tabu} to \textwidth {X[1,m,c] X[9,m]}


The positioning is still not perfect. The baseline isn't the same.

# Update #2

After I added \strut as Gonzalo Medina recommended, I've still the problem if I'm using \usepackage{lmodern}.

-
PLease complement your code to a minimal working example (MWE). –  doncherry Oct 14 '12 at 0:22
Okay, just a moment. –  Sam Oct 14 '12 at 0:23
This seems to be an issue with the column specification X and \rowfont, the baseline of the normal text is used as the top anchor for the X column. –  Qrrbrbirlbel Oct 14 '12 at 0:31
How can I fix this issue? –  Sam Oct 14 '12 at 0:32

One option is to change the c column specification; for example:

\documentclass{article}
\usepackage[table]{xcolor}
\usepackage{tabu}

\begin{document}

\noindent\begin{tabu} to \textwidth {X[1,m,c] X[9,m]}
\taburowcolors{white .. white}
Bla & bla \\ \hline
Footer & bla
\end{tabu}

\end{document}


Depending on you actual needs, the specification might need some adjustments.

A test using TikZ to draw a line showing the baseline:

\documentclass{article}
\usepackage[table]{xcolor}
\usepackage{tabu}
\usepackage{lmodern}
\usepackage{tikz}

\begin{document}

\noindent\begin{tabu} to \textwidth {X[1.5,m,c] X[8.5,m]}
Aufwand & Beschr \\ \hline
\taburowcolors{white .. white}
Bla & bla \\ \hline
Footer & bla
\end{tabu}

\noindent\begin{tikzpicture}[remember picture,overlay]
\draw[red] (0,29.5pt) -- (\textwidth,29.5pt);
\end{tikzpicture}

\end{document}


-
Thank you for your answer. It helped to fix the problem almost. I've done an update of my question. –  Sam Oct 14 '12 at 0:48
@Sam new updated (changing the position of \strut). –  Gonzalo Medina Oct 14 '12 at 1:01
Thank you for your update. It works with the given setting. Unfortunately I use another font \usepackage{lmodern}. With that font there is still a difference.. –  Sam Oct 14 '12 at 1:02
@Sam sorry, but I can't see the difference using my last updated code. Can you add an example to your question showing the difference? –  Gonzalo Medina Oct 14 '12 at 1:04
I've updated my question. –  Sam Oct 14 '12 at 1:08