Skip to content

Commit 5692533

Browse files
committed
Vertical align
1 parent 7fc4502 commit 5692533

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

main.css

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,14 @@ body {
2222
}
2323

2424
header {
25-
padding: 0 25px 0 25px;
25+
position: relative;
2626
max-width: 500px;
27-
margin: 15% auto 0 auto;
27+
margin: 0 auto;
28+
padding: 0 25px 0 25px;
29+
top: 50%;
30+
-webkit-transform: translateY(-50%);
31+
-ms-transform: translateY(-50%);
32+
transform: translateY(-50%);
2833
border-right: 4px solid #C49A6C;
2934
}
3035

@@ -93,6 +98,10 @@ header h2 {
9398
}
9499

95100
@media screen and (min-width:550px) {
101+
header {
102+
max-width: 500px;
103+
}
104+
96105
header h1 {
97106
font-size: 4.1em;
98107
}

0 commit comments

Comments
 (0)