How can I implement a search button inside the search box, as seen on a site like Bing?
相关问题
- Adding a timeout to a render function in ReactJS
-
Why does the box-shadow property not apply to a
- Add animation to jQuery function Interval
- jQuery hover to slide?
- Issue with star rating css
A Cool Bing-like Search Box (Button on the Inside)
It just looks like it's inside but it's not (you cannot put html inside an input).
The 2 elements (an input and a button) are close together with 0 margin and both have the same height. The button's graphic has a 3px white margin. So it creates this effect.
A possible markup and styling could be: