Styling Forms for a Modern Look in CSS


Give form elements a modern look with border, padding, and background-color.

Source Code

input[type="text"], select, textarea {
    border: 1px solid #ccc;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 5px;
    margin-bottom: 15px;
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments