[Tex/LaTex] How to set the width of the cell and allow it to take multiple lines

longtabletables

I have a table below

\documentclass[a4paper,12pt]{article}
\begin{document}
\begin{quote}
  \begin{tabular}{|c|c|c|c|c|}
    \hline
    \multicolumn{4}{c}{Table title}\\
    \hline
    Fuze Type & Weight & Muzzle Velocity & From sea level\\
    \hline
    Time & Vehicle wt: 5000

    Tyre wt: 100&40000 m/s & 0m\\
    \hline
    Degrees & Minutes & Mil &Range in m & Time of flight in s\\
    \hline
  \end{tabular}
\end{document}
  1. I want the second column to be of fixed width and if the length of text in this column is more, text will be allowed to take multiple lines without changing the width.
    Edit:Can you also tell me how to do the same in longtable.(|>{\centering}p{2cm}| doesn't seem to work in longtable.

  2. I want left and right edges of the top row visible.

  3. I need the last columns of rows 2 and 3 invisible(no borders), since there is no data in those cells.

Best Answer

\documentclass[a4paper,12pt]{article}
\begin{document}
\begin{quote}
  \begin{tabular}{|c|p{3cm}|c|c|c|}
    \cline{1-4}
    \multicolumn{4}{|c|}{Table title}\\
    \cline{1-4}
    Fuze Type & Weight & Muzzle Velocity & From sea level\\
    \cline{1-4}
    \centering
    Time & Vehicle wt: 5000

    Tyre wt: 100&40000 m/s & 0m\\
    \hline
    Degrees & Minutes & Mil &Range in m & Time of flight in s\\
    \hline
  \end{tabular}
\end{quote}
\end{document}

screenshot