I am trying to get the column headers to match up when I \shortstack{} what is in the cell. I would like the top line to be the same and the only hack way I can try to make it the same is to introduce fake spacing with \rule but I'm sure this is not the best way. Can someone help me to line up the top line of the header row in the matrix.
https://tex.stackexchange.com/a/536391/209444
\documentclass{examdesign}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric,calc,matrix}
\class{necessary for examdesign}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%thanks to Schrodinger's Cat for the following code.
%https://tex.stackexchange.com/a/536391/209444
\usepackage{eqparbox}
\newbox\matrixcellbox
\tikzset{center align per column/.style={column #1/.style={nodes={execute at begin
node={\setbox\matrixcellbox=\hbox\bgroup\strut},
execute at end
node={\egroup\eqmakebox[\tikzmatrixname\the\pgfmatrixcurrentcolumn][c]{\copy\matrixcellbox}}}}},
}
\newcommand{\red}{\textcolor{red}}
\newcommand{\white}{\textcolor{white}}
\newcommand{\blue}{\textcolor{blue}}
\begin{document}
\begin{tikzpicture}
\matrix[matrix of nodes,inner sep=0pt,outer sep=0pt,
nodes={draw,inner sep=5pt,font=\sffamily,inner xsep=5pt},
column sep=-\pgflinewidth/2,row sep=-\pgflinewidth/2,
center align per column/.list={1,2,3},
ampersand replacement=\&] (mat) {
\shortstack{\\Number of times\\ Ben says,\\ "Power Ranger"} \& \shortstack{\rule{0pt}{9pt}\\number$\times$ gap\\\rule{0pt}{9pt}}\& \shortstack{Number of fries\\ Connor eats in total}\\ %%%%%my hack for attempting to make the top line equal.
$0$ \& $0$ \&{8} \\
1 \& {} \& 13\\
{} \& {} \& 18\\
{}\& {} \&23 \\
};
\path[every node/.style={font=\sffamily\small},->,>=latex,line width =1pt]
(mat-2-1.east-|mat.east) edge[draw=blue,bend left=110,min distance=1.5cm] (mat-3-2.east-|mat.east)
([yshift=-1mm]mat-5-2.south) edge[bend right]node[below]{\red{add ? each time}}([yshift=-1mm]mat-5-3.south)
;
\path[nodes={circle,anchor=west,inner sep=10pt,draw,semithick,midway}]
(mat-2-2.south-|mat.east) -- (mat-3-2.north-|mat.east) node{\blue{}}
;
\end{tikzpicture}
\end{document}
Here is what I get:
Please help me line up the top line for the first row(all three columns)


row 1/.style = {nodes={minimum height=..., ...}– Zarko Apr 07 '20 at 17:46\parboxes and specify the heights and alignments using the optional arguments. You might need [anchor=base] for the nodes. – John Kormylo Apr 07 '20 at 19:48