I have a table produced by the following code:
\documentclass[a4paper]{article}
\usepackage{tabularx}
\usepackage{rotating}
\begin{document}
\begin{table}[ht]
\begin{center}
\begin{tabularx}{\textwidth}{|l|X|l|l|l|l|l|l|}
\hline
Item & Task &
\multicolumn{1}{|c|}{
\begin{sideways}
Resident Engineer \,
\end{sideways}} &
\multicolumn{1}{c|}{
\begin{sideways}
Pavement Engineer \,
\end{sideways}} &
\multicolumn{1}{c|}{
\begin{sideways}
Surveyor \,
\end{sideways}} &
\multicolumn{1}{c|}{
\begin{sideways}
Environmental Specialist \,
\end{sideways}} &
\multicolumn{1}{c|}{
\begin{sideways}
Materials Technicians \,
\end{sideways}} &
\multicolumn{1}{c|}{
\begin{sideways}
Inspectors of Works \,
\end{sideways}} \\
\hline
Task 1 & Mobilization and Project Inception & P & P & P & P & P & P \\
\hline
Task 2 & Carry out data collection \& review of existing data & P& S & P &P &P & P\\
\hline
Task 3 & Compiling and submitting the Inception report &P & S& & &P & \\
\hline
\end{tabularx}
\end{center}
\end{table}
\end{document}
The problem is that Item and Task cells are not centered. How can I center the text in these two cells (vertical and horizontal alignment)?


graphicxpackage to obtain rotated headings, it is less cumbersome than what I used. – engineervix Mar 25 '12 at 22:07