27

I have a TikZ block defined. The text inside it is not getting vertically aligned to the top. The following is the code I am using:

\begin{tikzpicture}[node distance = 6cm, auto]
  \node [block, right of=interface] (conn) {
  \small ConnectedTo
  \linebreak
  \tiny
  \setlength{\leftmargini}{1.5em}
  \vspace{-4    mm}
  \begin{itemize}
    \itemsep0em
    \item Status: Up
  \end{itemize}};
\end{tikzpicture}

The resulting image is:

Block 1

Is there a way to align the text "top-left"?

1

1 Answer 1

30

Put your text in a separate node and place it correspondingly

\node[below right] at (conn.north west) {Your text};
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .