Taylor Ackley
Oct 19, 2015 · 1 min read

Sexy Input Styling Example with CSS

For the app I am currently making, I wanted to create transparent inputs with rounded corners and styled placeholders.

In researching how to do this, I found there was a surprisingly small set of nice examples for me too follow and very little information in general. Below is the look I was going for. Primarily, I wanted the background of the input transparent and rounded white borders. Additionally, I wanted the placeholder to standout and “fit” with the background and overall look.

The look:

Image for post
Image for post

How I made it (Gist)

The obvious thing to note here, is simply created a class such as .MyInput with styling and adding it to your input as normal is not going to do anything. You must specifically target using input[type=”input”]. The type can be switched out for any other type of form element.

If you wanted to style forms differently, you could always nest the class by adding .myForm in front of the input[type=”input”]. Simply add the myForm class to your form tag, and now only the form with a class of myForm will receive the styling you specify.


Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store