form {
/* Center the form on the page */
margin: 0 auto;
width: 400px;
/* Form outline */
padding: 1em;
border: 1px solid #CCC;
border-radius: 1em;
}
ul {
list-style: none;
padding: 0;
margin: 0;
}
form li + li {
margin-top: 1em;
}
label {
/* Uniform size & alignment */
display: inline-block;
width: 90px;
text-align: right;
}
input,
textarea {
/* To make sure that all text fields have the same font settings
By default, textareas have a monospace font */
font: 1em sans-serif;
/* Uniform text field size */
width: 300px;
box-sizing: border-box;
/* Match form field borders */
border: 1px solid #999;
}
input:focus,
textarea:focus {
/* Additional highlight for focused elements */
border-color: #000;
}
textarea {
/* Align multiline text fields with their labels */
vertical-align: top;
/* Provide space to type some text */
height: 5em;
}
.button {
/* Align buttons with the text fields */
padding-left: 90px; /* same size as the label elements */
}
button {
/* This extra margin represent roughly the same space as the space
between the labels and their text fields */
margin-left: .5em;
}
Code Example |
---|
Css :: css sticky navigatiojn |
Css :: text wrap |
Css :: how to middle fixed element |
Css :: how to hide the scrollbar in css |
Css :: input disabled remove css |
Css :: how to wrap the data in table material UI |
Css :: insert background image css error |
Css :: scss breakpoints |
Css :: text decoration underline not removing |
Css :: css blur gradient |
Css :: round 2 corners of div css |
Css :: arrow down css |
Css :: window popup hide address bar |
Css :: svg image shadow css |
Css :: css center alignment |
Css :: javascript canvas pixel art |
Css :: image rendering css |
Css :: center text in css |
Css :: custom select tailwind css |
Css :: css border width |
Css :: li not first child |
Css :: word break css |
Css :: cssnano |
Css :: background image with color overlay gradient css |
Css :: center div vertically and horizontally |
Css :: remove effect off animation css |
Css :: css img src |
Css :: change default arrow icon for accordion in bootstrap |
Css :: image with background color css |
Css :: css text align center |