I am using the following code borrowed from here:
\documentclass{article}
\begin{document}
\fbox{\parbox{\textwidth}{The \textit{two-step} model of XMCD:
\hline
\begin{itemize}
\item In the \textit{first step}, circularly polarized X-rays generate photoelectrons with a spin and/or orbital momentum from a localized atomic inner shell.
\item In the \textit{second step}, the 3d shell serves as the detector of the spin or orbital momentum of the photoelectron. For maximum effect, the photon spin needs to be aligned with the magnetization direction.
\end{itemize}}}
\end{document}
The horizontal line after the first row created using the \hline is not meeting the vertical lines at the ends. How can this horizontal line be made to meet the vertical lines even at the ends?


\hline. Replace\hlinewith\par\noindent\hspace{-\fboxsep}\makebox[\dimexpr\linewidth+2\fboxsep\relax]{\hrulefill}– Steven B. Segletes Jun 07 '21 at 20:29\fbox{\parbox{\textwidth}is too wide to fit in the page, you should use\fbox{\parbox{\dimexpr\textwidth-2\fboxsep-2\fboxrule}to allow space for the box. – David Carlisle Jun 07 '21 at 20:40