# Nopagebreak problem

I have table and her caption, I need to have no page break, but function \nopagebreak isn’t working:

\textbf{name}\nopagebreak
\begin{flushleft}
\begin{tabular}{|c|c|}
•••


Why?

• Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – Stefan Pinnow Feb 18 at 12:34
• Why don't you use a table environment and the \caption command? – leandriis Feb 18 at 12:49