Any way to change the background color of a text box without all the workarounds such as placing another shape behind the text.

I need to have a textbox filled with color of 249, 249, 249 and a stroke of 204, 204, 204 which will be 1px. I also need to have the text keep a distance of 5px from all four sides from the stroke internally.

Currently I am doing this by having a rectangle of size say 300px X 500px, giving it a fill of 249, 249, 249 and stroke of 1px of color 204, 204, 204. Than I add a Text Box by using the Type Tool and draging to to "draw" a box of 290px X 490px and placing it in the middle of the above rectangle so that I get 5px distance from all four sides.

It does what I want but it's not elegant. Any better way to do this?


To make the text box a different color, select a corner of the text box with the Direct Selection tool (the white arrow). Adjust the color/stroke normally.

To create a margin between the box edge and the text itself, select the box with the regular Selection tool (black arrow), then go to Type > Area Type Options, and adjust the Inset Spacing under the Offset category.

  • Sorry But I must be doing something wrong. Following your steps changes the color of text, not the background of the text box – Jawad Jul 26 '12 at 20:54
  • Yes I am using the Direct Selection Tool. I am not making any mistake about it. White Mouse Arrow = Direct Selection Tool (A) – Jawad Jul 26 '12 at 20:58
  • 1
    I apologize, I should have said that you must select one of the corner points of the text box with the Direct Selection tool. – cheribom Jul 26 '12 at 21:01
  • I've edited the original answer to reflect @cheribom's comment above. – Herb Caudill Feb 26 '15 at 16:42

Create the Area Text (text box)

Select the Area Text with the Direct Selection Tool (white arrow)

Color to your heart's content.


To vertically align the text within the background box you may also need to set a negative baseline in the Character > Show Options > Baseline Shift box.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.