Lately I've been playing around with CSS3 and discovered some new CSS tricks. Did you know you can make a round circle with border-radius and create inner shadow effect with box-shadow inset? Check out this beautiful search form demo that I've created with CSS gradient, border-radius, and box-shadow. It displays perfect in CSS3 browsers and degrades gracefully in non-CSS3 browsers.
Round Circle Trick
You can create a round circle by specifying a very large value with the border-radius property. The following example uses 100px border-radius to make a round circle.
.circle {
width: 100px;
height: 100px;
-moz-border-radius: 100px;
-webkit-border-radius: 100px;
}
Inner Shadow Effect
Specifying inset values with the box-shadow property to create a inner shadow effect. As of now, this feature is only supported by Chrome 4+ and Firefox 3.5+.
.inset {
-moz-box-shadow: inset 0 3px 8px rgba(0,0,0,.4);
-webkit-box-shadow: inset 0 3px 8px rgba(0,0,0,.4);
box-shadow: inset 0 3px 8px rgba(0,0,0,.24);
}
Search Form Example
The following search form demo is created with CSS gradient, border-radius, and box-shadow with inset values (view the demo with Chrome 4+ or Firefox 3.5+). It degrades nicely in non-CSS3 browsers. View source code to learn the CSS code. If you are not familiar with CSS3, read my previous article The Basics of CSS3.



acaba kv nin özeti çıktımı
Thank you for everything!!!
This is great!! Thank you, it is just what I was looking for to add to by new blog theme.
It would seem that this CSS3 is an art work in it;s own form. How ever one must remember that it’s only good in the form mat of CSS3 and does not display the same way in other browsers. Just take that in to account when using this software.
super! thanks
Thanks !!! Very usefull !!
that’s great…. it’s cool…
That is to be expected in a long-term, high-risk project like ours. So, we turned to the blogging community for help – and got it! We have published our problems, and the community responded with results
that’s great…. it’s cool…
NICE, THANKS
Beautiful CSS3 Search Form:
looks great in firefox 4 beta.
Google Chrome webkit [standalone version] does not render it well ver.9.0
Nice website and info dude.
Hi,
I modified the code slightly: now it renders correctly in Google Chrome.
from
-webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
to
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.2);
Box-shadow and border-radius bug in Chrome
Finally got to the root of the problem.. sorry for all the posts.
removing the inset also removes the cool drop shadow. apparently there is a known bug in chrome.
super! thanks to you
I am using Firefox stable and this CSS3 Search Form looks great in it. I love the design of this blog as well. It is very visually captivating. I’ve been utilizing the capabilities of CSS3 to give a better feel to my rapid prototypes company website.
hi here is babar from pakistan when i got these tricks i am feeling comfortable now? its great and u are doing fantastic job for whole world thanks
Awesome! I can’t wait to give this a try!
Gorgeous. Thanks for sharing this. You rock.
I agree, it indeed displays perfectly in CSS3 browsers. Thank you.
It does degrade gracefully in non-CSS3 browsers too. Thanks.