Text box is a very important useful control in html. It is very simple in look. But we can style it in various ways using CSS3 text box. We can style the different part of the text box. That is, we can change the border, outline, margin, background color , fore color, padding, font, shadow, width, height, active.
Make a container with header
@charset "utf-8";
.full
{
width:80%;
position:relative;
left: 10%;
padding: 10px;
margin-top: 30px;
margin-bottom: 30px;
box-sizing: border-box;
font-size: 18px;
font-weight: bold;
color: #3852A1;
}.container
{
width: 60%;
background-color: #fff;
border-style: solid;
border-width: 1px;
border-color: #000;
position: relative;
left: 20%;
}.container header
{
width: 100%;
text-align: center;
font-size:28px;
background-color: #000;
color: #fff;
font-weight: bolder;
box-sizing: border-box;
}
Textbox class Style1
.style1
{
border-style: solid;
border-width: 1px;
border-color: #000;
border-radius: 50px;
}
Textbox class Style2
.style2
{
border: none;
border-bottom-style: solid;
border-bottom-width: 3px;
border-color: #f00;
}
.style2:focus
{
background-color: #F7E4E4;
}
Textbox class Style 3
.style3
{
background-image: url("u.png");
background-position: 10px 10px;
background-repeat: no-repeat;
padding-left: 35px;
border-style: solid;
border-width: 1px;
border-color: #000;
border-radius: 5px;
box-shadow: 10px 10px 10px rgba ( 136 , 136 , 136 , 0.3 );
}