We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e83eed commit a21e2e9Copy full SHA for a21e2e9
html/forms/your-first-HTML-form/first-form-styled.html
@@ -4,10 +4,12 @@
4
<meta charset="utf-8" />
5
<title>Your first HTML form, styled</title>
6
<style>
7
- form {
+ body{
8
/* Just to center the form on the page */
9
- margin: 0 auto;
10
- width: 400px;
+ text-align: center;
+ }
11
+ form {
12
+ display: inline-block;
13
/* To see the outline of the form */
14
padding: 1em;
15
border: 1px solid #ccc;
@@ -27,7 +29,8 @@
27
29
label {
28
30
/* To make sure that all labels have the same size and are properly aligned */
31
display: inline-block;
- width: 90px;
32
+ min-width: 90px;
33
+
34
text-align: right;
35
}
36
0 commit comments