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 6f75e38 commit 4bc1425Copy full SHA for 4bc1425
styles.css
@@ -1,19 +1,21 @@
1
/*
2
-ELEMENTS HAVE IT SET BY DEFAULT
3
-BLOCK : Always starts a new line and spans full width
4
-INLINE : Does not start a new line and spans only content
+ HORIZONTAL CENTERING
5
*/
6
7
.block {
8
background: blue;
9
color: white;
10
- display: block;
11
- display: inline;
+ width: 300px;
+ margin: 2rem auto;
+ /* margin-left: auto; */
+ /* margin-right: auto; */
12
}
13
14
.inline {
15
background: red;
16
17
18
+}
+
19
+body {
20
+ text-align: center;
21
0 commit comments