When highlighting text using Style
and Background
, as in Style["Test ", White, Background -> Lighter@Blue]
is there a way to pad (ie, enlarge) the bounding box?
The bottom of the background seems coincident with the base of the text:
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this communityStyle[Pane[" Test "], White, Background -> Lighter@Blue]
Edit
Controlling the padding:
Style[Pane[" Test ", ImageMargins -> 10], White, Background -> Lighter@Blue]
You could play with the FrameMargins
...
Framed[Style["Test", White], FrameStyle -> None, FrameMargins -> 2,
Background -> Lighter@Blue]