HOME
          About US
          Contact Us

CSS Forms

Chapter - 23 : CSS Forms


Chapter - 23 : CSS Forms Refer Chapter - 10, where input form type is defined. To make it beautiful and professional, the 'form' may be decorated by defining the style in the CSS, as below. Keep the entries same in HTML file.

i) Text : input[type='text'] {width:100px;
display:block;
margin-bottom:5px;
background-color:yellow;
font-color:red;}

CSS

ii) Radio: input[type='radio'] {width:20px;
display:block;
background-color:blue;
font-color:red;}
Forms

ii) Check Box: input[type='checkbox'] {width:20px;
display:block;
background-color:green;
font-color:red;}
CForm

Similarly it can be defined for all types of form input.

CSS Forms
© funandhobby.com (CSS Forms)