1

I want to add background color to my table, but do not want any borders

\documentclass[12pt, landscape]{article}
\usepackage{colortbl}

\begin{document}

\begin{table}[h]
  \begin{tabular}{cl}
  \rowcolor{black}
  \textcolor{white}{A}  &  \textcolor{white}{B} \\
  \rowcolor{black}
  \textcolor{white}{a} & \textcolor{white}{b} \\
  \end{tabular}
\end {table}

\end{document}

enter image description here

As you can see there is a very thin line which appears between the columns and rows, which I believe is due to the space between cells. I do not want these lines.

How to remove them?

Thanks.

-Alok

leandriis
  • 62,593
Alok
  • 21

0 Answers0