Position title text at the left side of the border line for left to right orientation, at the right side of the border line for right to left orientation.
Diagram: Border