CSS – To access All Form Elements


There is a very short code, in fact, to access all form elements in systems which does not allow Class description or in sites which really have many form elements and in which your Class description takes too much time by entering these many elements one by one :

input,select,option,textarea,button{ ... }
input[type=button],input[type=submit],button{ ... }

You can arrange all form elements with the first line, diversify only button elements with the second line.

With

input[type=button]:hover,input[type=submit]:hover,button:hover{ ... }

, it enables you to arrange hover effects

You can leave a response, or trackback from your own site.

Leave a Reply

You must be logged in to post a comment.