Skip to content

Commit d560624

Browse files
committed
style: implement modern flexbox centering grid layout
1 parent 6968115 commit d560624

1 file changed

Lines changed: 22 additions & 6 deletions

File tree

‎Sprint-3/quote-generator/style.css‎

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,29 @@
1+
body {
2+
display: flex;
3+
flex-direction: column;
4+
align-items: center;
5+
justify-content: center;
6+
min-height: 60vh;
7+
margin: 0;
8+
font-family: 'Courier New', Courier, monospace;
9+
}
10+
111

2-
h1, p, button{
12+
h1, p, button, blockquote, cite {
313
margin: 30px;
414
text-align: center;
515
}
616

17+
cite {
18+
display: block;
19+
font-style: italic;
20+
color: #555;
21+
}
22+
723
#new-quote {
8-
margin: 20px;
9-
position: absolute;
10-
left: 50%;
11-
-webkit-transform: translate(-50%, -50%);
12-
transform: translate(-50%, -50%);
24+
display: block;
25+
margin: 20px auto;
26+
padding: 10px 20px;
27+
cursor: pointer;
28+
margin-top: 20px;
1329
}

0 commit comments

Comments
 (0)