I'm trying to apply a shadow to a longtabu
environment (because I want the table expands to fit the available width), similar to this table (CSS):
But, for my sample LaTeX` table, between the shadow and the table, there's some border and padding and I don't know how to remove it:
\documentclass[11pt]{article}
\usepackage[spanish]{babel}
\usepackage[utf8]{inputenc}
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
\usepackage{geometry}
\usepackage{tabularx}
\usepackage{colortbl}
\usepackage[skins]{tcolorbox}
\usepackage{tabu}
\usepackage{longtable}
\definecolor{lightgray}{RGB}{180, 180, 180}
\geometry{
a4paper,
margin=1cm,
top=1.3cm,
}
\begin{document}
\begin{tcolorbox}[enhanced,size=fbox,drop shadow]
\begin{longtabu} to \textwidth {cXc}
\rowcolor{Maroon}
Imagen & Producto & Total\\
\rowcolor{lightgray}
A & B & C
\end{longtabu}
\end{tcolorbox}
\end{document}
In short, I want to remove the borders, to center the shadow, and to remove the padding between the shadow and the table, preferably with using standard packages or environments, but using custom commands is also fine.
longtabu
is not necessary heretcolorbox
withbreakable
, thelongtabu
won't break any longer!