diff --git a/basic.css b/basic.css index 6099bd2..ed0a189 100644 --- a/basic.css +++ b/basic.css @@ -3,14 +3,12 @@ max-width: 64em; flex-grow: 1; max-width: 64em; + + align-items: center; } body { margin: 0px; - display: flex; - justify-content: center; - align-items: center; - flex-direction: column; } header{ @@ -19,9 +17,10 @@ header{ background-color: #2867af; width: 100vw; + + display: flex; align-items: center; justify-content: center; - display: flex; } @@ -58,24 +57,27 @@ header > .wrapper > .title{ font-weight: bold; } -body > .main { - display: flex; - flex-direction: row; - width: 100vw; - align-items: center; - align-content: center; -} - body > .main > .wrapper{ background-color: white; flex-direction: column; + justify-content: center; } -@media screen and (min-width: 640em) { - body > .main > .ad { - flex-grow: 1; - background-color: red;` +#@media screen and (min-width: 640em) { + body > .ad { + background-color: red; + position: absolute; + z-index: 1; + width: 100vw; + height: 100vh; } +#} + +.main { + display: flex; + align-items: center; + flex-direction: column; + justify-content: center; } article{ @@ -88,8 +90,6 @@ article{ text-overflow: hidden; white-space: normal; text-overflow: ellipsis; - - max-height: 40vh; } article > .text{ diff --git a/index.html b/index.html index 37b169c..0720faa 100644 --- a/index.html +++ b/index.html @@ -16,9 +16,10 @@ -