HOME
            About US
            Contact Us
            Fun Games

CSS Forms
CSS FormsCSS 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;}





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


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


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

© funandhobby.com (CSS Forms)