25 lines
849 B
CSS
25 lines
849 B
CSS
input[type=text], select, textarea {
|
|
width: 20%; /* Full width */
|
|
padding: 12px; /* Some padding */
|
|
border: 1px solid #ccc; /* Gray border */
|
|
border-radius: 4px; /* Rounded borders */
|
|
box-sizing: border-box; /* Make sure that padding and width stays in place */
|
|
margin-top: 6px; /* Add a top margin */
|
|
margin-bottom: 16px; /* Bottom margin */
|
|
resize: vertical /* Allow the user to vertically resize the textarea (not horizontally) */
|
|
}
|
|
|
|
/* Style the submit button with a specific background color etc */
|
|
button[type=button] {
|
|
background-color: gray;
|
|
color: white;
|
|
padding: 12px 20px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* When moving the mouse over the submit button, add a darker green color */
|
|
input[type=submit]:hover {
|
|
background-color: #45a049;
|
|
} |