Long Search Bar in CSS

by kushsolitary

A very cool and a very long search bar created by Dan Eden. It uses an extra p tag to style the search bar (and the search icon) perfectly.

It's purely CSS3 and no images are used. Also, it has very lovely hover and active states. Just a sprinkle of jQuery can bring this search bar to life!

HTML

CSS

Browser Screenshots (1)

Add New Comment

Showing Comments

talmand

talmand

This is nice but I would suggest a slightly different markup:

Then change stuff like p.s to span.s in your CSS. This is possibly a little better in terms of accessibility; especially if you put some text in there that you hide with placement hacks.

Feedback