I'm trying to do something to do something very similar to this:
Rotate node text and use relative positioning in TikZ?
Except I would like to rotate multiple nodes, and I end up with one node 'floating' above the other:
Ideally I would like them to just be aligned next to each other.
Here is the example code:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes.misc, positioning}
\begin{document}
\begin{tikzpicture}
\tikzstyle{every node}=[font=\scriptsize]
\node(node1) [draw, rounded rectangle, align=center, rotate=90, fill=gray ]{Small text};
\node(node2) [draw, rounded rectangle, right = of node1, align=center, rotate=90, fill=red, anchor=north] {longer text \\ on two lines};
\end{tikzpicture}
\end{document}