From 98db034310f2716a384b447470caa553896e7c2c Mon Sep 17 00:00:00 2001 From: Paolo Bautista Date: Fri, 25 Mar 2022 15:32:02 -0400 Subject: [PATCH] Holy Grail CSS Grid --- week-9/index.html | 40 ++++++++++++++++++++++++++++++++++++++++ week-9/main.css | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 week-9/index.html create mode 100644 week-9/main.css diff --git a/week-9/index.html b/week-9/index.html new file mode 100644 index 0000000..5b0e949 --- /dev/null +++ b/week-9/index.html @@ -0,0 +1,40 @@ + + + + + + + Responsive Holy Grail + + + +
+ + + + +
+

CONTENT

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+
+ + + + +
+ + \ No newline at end of file diff --git a/week-9/main.css b/week-9/main.css new file mode 100644 index 0000000..c6b209b --- /dev/null +++ b/week-9/main.css @@ -0,0 +1,37 @@ +header, footer{ + background-color: aqua; +} +#menu, #ad { + background-color:blueviolet; +} +#content{ + background-color: lightcoral; +} + + + +@media (min-width: 600px) { + #container { + display: grid; + height: 100vh; + grid-template-columns: 1fr 2fr 1fr; + grid-template-rows: 1fr 3fr 1fr; + } + #header, #footer { + grid-column: 1 / span 3; + } +} + +h1, h3, p { + text-align: center; +} +h1{ + font-size: 2em; +} +p { + font-size: 1.5em; +} + +header, section, footer { + border: solid; +} \ No newline at end of file