Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to create a "template" notebook for myself.
I want to get input from a single InputField, and then run a few operations on it.

How can I make the InputFiled (that is, the box itself) be prettier?

How can I manipulate it's style?

I was asked to define prettier (which stands to reason).
So let's have WolframAlpha's (website) input box as a refrence point.

share|improve this question
Define "prettier". With[{img = ExampleData[{"TestImage", "Elaine"}]}, Panel@Column[{img, InputField[]}] ] :) – R. M. Oct 8 '13 at 14:15
Ahhh... Lenna... – Trevor Oct 8 '13 at 14:32
up vote 8 down vote accepted

You can get custom colors and rounded corners by adding a custom frame to a frameless InputField. The following code approximates the look of Wolfram Alpha's input field:

With[{opts = {FrameMargins -> 0, ImageMargins -> 0}},
        Framed[InputField[, ImageSize -> {500, 25}, Appearance -> "Frameless"], 
            FrameStyle -> Red, RoundingRadius -> 5, opts
        BoxFrame -> 3, RoundingRadius -> 7, FrameStyle -> Lighter@Orange, opts

Note that due to a bug, the FrameStyle option for Framed does not follow thickness directives (and possibly others), so a lower level workaround using BoxFrame is necessary.

share|improve this answer
Wow! Excellent solution! This would really make my "template" notebook so much prettier. Thanks. – Trevor Oct 8 '13 at 15:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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