How to set top align for tabular inside tabular?
I propose another code, without multirow
: as the picture is the only cell in its column,a simple \smash{\raisebox…
will do the trick. I've added a variant, without vertical rules, and the thicker horizontal rules of booktabs
, which looks nicer in my opinion:
\documentclass[12pt]{article}
% For removing number order at section header.
\makeatletter
\def\@seccntformat#1{%
\expandafter\ifx\csname c@#1\endcsname\c@section\else
\csname the#1\endcsname\quad
\fi}
\makeatother
% For font-size header
\usepackage{sectsty}
\sectionfont{\fontsize{12}{15}\selectfont}
% For top-align and left-align size.
\usepackage[utf8]{inputenc}
\usepackage{geometry}
\geometry{
a4paper,
total={170mm,257mm},
left=25mm,
top=20mm,
}
\usepackage{array, booktabs}
\usepackage[x11names]{xcolor}
% Define tab length.
\newcommand\tab[1][1cm]{\hspace*{#1}}
\title{\textbf{\large{CURRICULUM VITAE}}}
\author{\textbf{\textit{Do Nhu Vy}}}
\date{July 2016}
\usepackage{natbib}
\usepackage{graphicx}
\begin{document}
\maketitle
\section{BASIC INFORMATION}
\setlength\extrarowheight{2pt}
\begin{tabular}{|l|>{\itshape}l|l|}
\hline
Full name & Do Nhu Vy & \raisebox{\dimexpr-\height +1pt}[0pt][0pt]{\includegraphics[scale=0.5]{sendak}} \\
Date of birth & 26\textsuperscript{th} August 1987 & \\
Hometown/Residence & Cat Que -- Hoai Duc -- Hanoi, Vietnam & \\
Marital status & Single & \\
Email & [email protected] & \\
Skype & dnv2006 & \\
Mobile number & +84 90 323 7207 & \\
\hline
\end{tabular}
\vspace{1cm}
\section{BASIC INFORMATION}
\setlength\extrarowheight{3pt}
\begin{tabular}{@{\,}>{\textcolor{CadetBlue3}{\textbullet}\enspace}l>{\itshape}ll@{}}
\toprule
Full name & Do Nhu Vy & \raisebox{-\height}[0pt][0pt]{\includegraphics[scale=0.5]{sendak}} \\
Date of birth & 26\textsuperscript{th} August 1987 & \\
Hometown/Residence & Cat Que -- Hoai Duc -- Hanoi, Vietnam & \\
Marital status & Single & \\
Email & [email protected] & \\
Skype & dnv2006 & \\
Mobile number & +84 90 323 7207 & \\
\bottomrule
\end{tabular}
\end{document}