I have a table and figure that I need them to appear side-by-side. The figure appears in a higher position than the table. I need to align them so that their sizes are equivalent. This is the script and the output compared to what I need.
\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage[font=small,labelfont=bf]{caption}
\usepackage{graphicx}
\begin{document}
\begin{minipage}{\textwidth}
\begin{minipage}[b]{0.49\textwidth}
\centering
\captionof{table}{Table}
\begin{tabular}{ll}
\hline\noalign{\smallskip}
Item1 & Item2 \\
\noalign{\smallskip}
\hline
\noalign{\smallskip}
C & 100 \\
B & 200 \\
C & 300 \\
\hline
\end{tabular}
\end{minipage}
\hfill
\begin{minipage}[b]{0.49\textwidth}
\centering
\includegraphics[width=0.5\textwidth]{venndiagram2}
\captionof{figure}{Diagram.}
\end{minipage}
\end{minipage}
\end{document}