For some reason, as I am trying to increase and add columns, it goes offscreen. Why does this happen exactly: Latex:
\documentclass[a4paper,svgnames,11pt]{article}
\textheight = 220mm
\textwidth = 150mm
\topmargin = 10mm
\oddsidemargin = 5.0mm
\evensidemargin = 5.0mm
\unitlength = 1mm
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{array}
\usepackage{booktabs}
\usepackage{fullpage}
\usepackage{graphicx}
\usepackage{threeparttable}
\usepackage{tikz}
\usepackage{tabularray}
\usepackage{bbding}
\usepackage{pifont}
\usepackage{wasysym}
\usepackage{amssymb}
\begin{document}
{\renewcommand{\arraystretch}{1.6}%
\small
\begin{table}[htbp]
\centering
\caption{Comparison}\label{tab:comparison}
\begin{tabular}{ |p{5cm}|p{3cm}|p{3cm}|p{3cm}|p{3cm}|p{3cm}| }
\hline
OS & \hfil Secure & \hfil Fast & \hfil Beautiful & \hfil Smart & \hfil Error free \ \hline
Windows & \hfil \checkmark & \hfil \checkmark & \hfil \checkmark & \ \hline
MAC OSX & \hfil \checkmark & \hfil \checkmark & \hfil \checkmark & \ \hline
Linux & \hfil \checkmark & \hfil \checkmark & \hfil \checkmark & \ \hline
\end{tabular}
\end{table}}
\end{document}



lorcand by this force that column widths will be adopt to width of cells contents. – Zarko Jan 19 '22 at 23:43p{5cm}for the first column seems excessive for the text you show, just uselso the column is the width of its content – David Carlisle Jan 19 '22 at 23:59