I am new to latex and cannot solve to fit this table to page size even though I looked up the problem in the forum. Any help would be very much appreciated.
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[scaled]{helvet}
\usepackage[table]{xcolor}
\renewcommand\familydefault{\sfdefault}
\usepackage[T1]{fontenc}
\thispagestyle{empty}
\usepackage[margin=0.7in]{geometry}
\begin{document}
\rowcolors{2}{gray!25}{white} % for alt row cols
\begin{table}[ht]
\centering
\makebox[\linewidth]{
\begin{tabular}{lllllll}
\rowcolor{gray!50} %for alt row cols
\hline
& Overall & None (N) & Mild (M) & Moderate (M) & Severe (S) \\
& Mean\% (SE) (95\% CI)&Mean\% (SE) (95\% CI)& Mean\% (SE) (95\% CI)&Mean\% (SE) (95\% CI) & Mean\% (SE) (95\% CI) \\
\hline
\textbf{XXXXXX}& 65 (61 - 69) & 20 (17 - 23)& 8 (6 - 10) & 7 (5 - 9) & \\
\textbf{XXXXXXX} (XXXX-XXX)& 42 (34 - 51) & 23 (15 - 30) & 17 (10 - 24) & 18 (11 - 25) & \\
\textbf{XXXXXXX} (XXXX-XXXX)& 62 (53 - 70) & 19 (11 - 26) & 8 (3 - 12) & 12 (6 - 17) & \\
\textbf{XXXXXX}& 73 (63 - 84) & 18 (8 - 28) & 5 (1 - 9) & 4 (-1 - 9) & \\
\hline
\end{tabular}
}
\end{table}
\end{document}

\resizebox{\textwidth}{!}instead of\makebox[\linewidth]with\usepackage{graphicx}in preamble. – Jan 19 '19 at 12:37\begin{adjustbox}{max width=\linewidth,center}, but I agree with David. – Martin Scharrer Jan 19 '19 at 12:57ltop{some length}in the argument oftabularso that you can have automated line breaks in longer cells. – Martin Scharrer Jan 19 '19 at 13:02