Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS: rounded text input fields

Tags:

css

how can I make rounded text input fields with css ?

thanks

like image 912
aneuryzm Avatar asked Jul 07 '10 09:07

aneuryzm


People also ask

What is border-radius in CSS?

The border-radius CSS property rounds the corners of an element's outer border edge. You can set a single radius to make circular corners, or two radii to make elliptical corners.


2 Answers

With CSS3:

 /* css 3 */
 border-radius:5px;
 /* mozilla */
 -moz-border-radius:5px;
 /* webkit */
 -webkit-border-radius:5px;
like image 186
Sarfraz Avatar answered Sep 29 '22 10:09

Sarfraz


in modern css3 browsers

-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;

in older you'll need to use a JS like jquery with rounded corners plugin or Ruzee

like image 45
helle Avatar answered Sep 29 '22 11:09

helle