I have a project to create a website designed in PhotoShop. I want to create a to textbox in HTML and CSS which looks like this:
As you can see, there is no problem with the background or fonts; the problem is the textbox. How can I create textboxes with these curves?
2
Answers
This is how to get the shape in your image. You will need to learn a bit about
border-radius
.The following is an example:
The
border-radius
property is responsible for rounding corners. It can be very sophisticated, but the simple one here will do the job. You will just need to adjust some of the values.The four values in the
border-radius
property represent the radius of the individual borders, clockwise from the top-left corner.