# How do I add a table as a Header for every page?

I want to add a table as headers to all the pages (except title page) in my document. I tried this:

\usepackage{fancyhdr}
%...
\begin{tabular}{l|r}
Lorem&Ipsum
\end{tabular}
}


But it did not work. How should I get it done?

Add \pagestyle{fancy}

\documentclass[]{article}

\usepackage{fancyhdr}

\pagestyle{fancy}
%...
\begin{tabular}{l|r}
Lorem&Ipsum\\
Lorem&Ipsum
\end{tabular}
}


\usepackage{lipsum}

\title{My title}
\begin{document}

\maketitle

\lipsum

\clearpage

\lipsum

\end{document}

• I get the table now but there is an extra horizontal rule by the fancy pagestyle. Edit: Got it – BBloggsbott Feb 18 at 14:32