O texto da tabela ultrapassa a margem direita

O texto da tabela ultrapassa a margem direita
\begin{table}[h!]
\centering
\begin{tabular}{| c | |c |}
\hline
Feature & Elaboration \\ [3ex]
\hline\hline
\\Budget Friendly & The system inputs financial budget of user in it's system, and provides a list of hotels that can be accessed with that budget. \\ [10ex]
\\Interactivity & While using the system, the barrier between machine and user is eradicated to the maximum capability. A user should feel as he/she is talking to a representative of a hotel. \\ [10ex]
\\Data Handling & The data of a user is recorded by the system. It can be easily accessed in the system. \\ [10ex]

\hline
\end{tabular}

O texto que escrevi não está completamente na tabela. Que erro cometi ou o que deveria ser corrigido?

insira a descrição da imagem aqui

Responder1

Use o tipo de coluna correto para sua segunda coluna. Você precisa de quebra de texto, então você pode usar p{<width>}o tipo coluna ou de preferência Xo tipo que calcula o espaço restante automaticamente, use tabularxpara o último. Além disso, em vez de adicionar vspace manual como \\ [3ex], basta aumentar o trecho do array em \renewcommand{\arraystretch}{1.5}, por exemplo.

\documentclass{article}
\usepackage{tabularx}
\begin{document}

\renewcommand{\arraystretch}{1.5}
\begin{table}[!htbp]
\centering
\begin{tabularx}{\linewidth}{|c||X|}
\hline
Feature         & Elaboration \\ \hline\hline
Budget Friendly & The system inputs financial budget of user in it's system, and provides a list of hotels that can be accessed with that budget. \\ 
Interactivity   & While using the system, the barrier between machine and user is eradicated to the maximum capability. A user should feel as he/she is talking to a representative of a hotel. \\
Data Handling   & The data of a user is recorded by the system. It can be easily accessed in the system.\\ \hline
\end{tabularx}
\end{table}

\end{document}

insira a descrição da imagem aqui

informação relacionada