I want to create a table like this.
So I used xcolor to give alternating colors as this.
This is what I got.
Q1 ) Do you know how to generate white vertical rule get the effect shown red ? (I need white borders. I have to keep the tables' size fixed always and have to use may tables like this which goes across the pages.)
Q2) Is it possible to center align 2nd column while keeping same width?
\documentclass[a4paper,10pt]{article}
\ifx\pdfoutput\undefined\else\usepackage{times}\fi
\usepackage[left=1in,top=1in,right=1in,bottom=1in,head=0.5in,foot=0.4in] {geometry}
\usepackage{graphicx}
\usepackage{float}
\floatstyle{plaintop}
\restylefloat{table}
\usepackage[usenames,dvipsnames,table]{xcolor}
\usepackage[table]{xcolor}
\usepackage[T1]{fontenc}
\usepackage{longtable}
\definecolor{BackColor}{RGB}{255,245,245}
\definecolor{AnnexColor}{RGB}{220,230,255}
\definecolor{GrayColor}{RGB}{220,220,220}
\let\oldlongtable\longtable
\let\endoldlongtable\endlongtable
\renewenvironment{longtable}{\rowcolors{3}{BackColor}{AnnexColor}\oldlongtable} {
\endoldlongtable}
\begin{document}
\begin{center}
\begin{longtable}{p{4.15in}p{0.85in}}\\
\rowcolor{GrayColor} \textit{\textbf{Link}} & \textit{\textbf{Count}} \\
/AJAX/infotitle.php & 1 \\
/search.php & 1 \\
/artists.php & 1 \\
/product.php & 1 \\
/userinfo.php & 2 \\
/AJAX/infoartist.php & 1 \\
/AJAX/infocateg.php & 1 \\
\end{longtable}
\end{center}
\end{document}
Thanks in advance.