I have a table which comes outside the text column width into the margin of the paper. How do I make the text in the table align to left ?
\documentclass[a4paper,10pt]{article}
\usepackage[utf8]{inputenc}
\title{}
\author{}
\begin{document}
\maketitle
\begin{abstract}
abc
\end{abstract}
\section{table}
\begin{table}[h!]
\caption{Top 5 movies recommended by content-based CF algorithm} %title of the table
\centering
% centering table
\begin{tabular}{c r}
% creating eight columns
\hline\hline
%inserting double-line
Movies&\multicolumn{1}{c}{Genre} \\ [0.5ex]
\hline
% inserts single-line
The Flintstones(1994)
& Children's,Comedy\\
% Entering row contents
Son in Law(1974) & Comedy, Horror\\
The Princess Bride(1987) & Action, Adventure, Comedy, Romance\\
Star Wars(1977) & Action, Adventure, Romance, Sci-Fi, War\\
Toy Story(1995)
& Animated, Animated Children's, Comedy\\[1ex] % [1ex] adds vertical space
\hline
% inserts single-line
\end{tabular}
\label{tab:hresult}
\end{table}
\end{document}
This is how it looks :



\noindent. But, can you _please_start including afully compilable MWE including\documentclassand the appropriate packages that sets up the problem, as opposed to code snippets. Then those trying to help can simply cut and paste your MWE and get started on solving problem. – Peter Grill Nov 16 '12 at 5:26\centeringwith a\noindent. – Peter Grill Nov 16 '12 at 5:33\begin{tabular}{c r}with\begin{tabular}{@{}c r@{}}. By the way, when I compile your MWE, the width of the table does not exceed the\textwidthparameter. – Mico Nov 16 '12 at 5:34\usepackage{showframe}to see the page margin. – mythealias Nov 16 '12 at 5:36