In each case, the blue border should neatly enclose the text and its yellow border-block.

x123321
123321x
x
123321
123321
x

x123321
123321x
x
123321
123321
x

x123321
123321x
x
123321
123321
x