I'm trying to "highlight" two parts of a sentence by using a \colorbox like so:
\colorbox{red}{This is} \colorbox{blue}{a great sentence.}
The problem is that in the second part the height colorbox is a bit bigger, because it contains a g which extends below the baseline. As a result, the two colorboxes do not align at the bottom which looks suboptimal.
How would I make the two boxes line up?

\strutwas the main point? – Hendrik Vogt Dec 21 '10 at 19:44\strutis just one possible solution of many, though probably the easiest. I prefer tags which characterize the question (size, alignment) instead of keywords of each good answer (\strut,\rule,\vphantom,\parbox, ...). It could be discussed further on meta: Adding tags to a question in accordance with a provided answer. – Stefan Kottwitz♦ Dec 21 '10 at 20:41