# How to pad Background size in Style calls

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:

-

## 2 Answers

Style[Pane[" Test "], White, Background -> Lighter@Blue]


Edit

Controlling the padding:

Style[Pane[" Test ", ImageMargins -> 10], White,  Background -> Lighter@Blue]

-
Ok that works. But is there no way to parametrically control size? (Other than rendering an independent Rectangle) – alancalvitti Jul 21 '12 at 19:22
@alancalvitti Add that request to the question. I tried to answer it in its current state – Dr. belisarius Jul 21 '12 at 19:23
@alancalvitti See edit – Dr. belisarius Jul 21 '12 at 19:25

You could play with the FrameMargins ...

Framed[Style["Test", White], FrameStyle -> None, FrameMargins -> 2,
Background -> Lighter@Blue]


-
Thank you, so Framed it is. – alancalvitti Jul 21 '12 at 19:51