How can I get a curved TextBox like the Facebook Status TextBox with html and css only?

Can Anybody illustrate me how to do that ??
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
My Cross-Browser, CSS-only version of the Facebook-style textbox:
HOW TO
I’ve used
:beforeon the inner container div (with 7px collapsed borders, three transparents, one white) to create a triangle where the borders intersect themselves, then i placed it just over the textbox with absolute positioning (overriding the textbox’s border to “attach” the triangle to it).According to this question,
rgbashould be used instead oftransparentin order to prevent Firefox to put an unwanted border;Then, for coloring the border in a cross-browser way, i used
:afterto place an identical triangle, with the same size, with a color similar(*) to the textbox’s borders, just 1px higher (in top position) than the white triangle.At this point, i’ve used
z-indexproperty to place the gray triangle UNDER the white triangle, so that only 1px of its “body” (the bottom border) would have been visible.This created the gray border to the arrow.
(*) I’ve chosen a color a bit darker than the textbox’s borders one, because of the “brightening” effect generated by mixing the two triangles.
With #888 instead of #bbb, the result is acceptable and more similar to the original color than using the original color itself.
Here is the commented code and the demo:
DEMO
http://jsfiddle.net/syTDv/
HTML
CSS
Hope that helps…