From f4b27781ca4372a0d0abd896d64be71a358f98d7 Mon Sep 17 00:00:00 2001 From: Michelle Gaynor Date: Mon, 1 Feb 2016 13:57:38 -0500 Subject: [PATCH] Added media queries --- css/main.css | 32 ++++++++++++++++++++++++++++++++ index.html | 2 +- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/css/main.css b/css/main.css index a8a8714..aec9931 100644 --- a/css/main.css +++ b/css/main.css @@ -102,6 +102,7 @@ body { main { width:1178px; margin:0 auto; + padding:10px; } h1 { @@ -192,11 +193,42 @@ footer ul li { } +/*Mobile Styles*/ +@media screen and (max-width:779px){ +main { + width:90%; + padding:10px; +} +article { + width:70%; + padding:10px; +} +footer ul li { + float:none; +} + +} +/*Tablet Styles*/ +@media screen and (min-width:780px) and (max-width:969px) { +main { + width:90%; +} + +article { + width:40%; +} + +} + +/*Desktop Styles*/ +@media screen and (min-width:970px) { + +} diff --git a/index.html b/index.html index 95da8cd..d8e3a0b 100644 --- a/index.html +++ b/index.html @@ -40,7 +40,7 @@

Article Title 2

-

We're messing around with some...stuff. And things

+

We're messing around with some...stuff. And things.

But Why?