Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added media queries
  • Loading branch information
mig13008 committed Feb 1, 2016
1 parent 966f438 commit f4b2778
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions css/main.css
Expand Up @@ -102,6 +102,7 @@ body {
main {
width:1178px;
margin:0 auto;
padding:10px;
}

h1 {
Expand Down Expand Up @@ -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) {

}



Expand Down
2 changes: 1 addition & 1 deletion index.html
Expand Up @@ -40,7 +40,7 @@
<article>
<header>
<h1>Article Title 2</h1>
<p>We're messing around with some...stuff. And things</p>
<p>We're messing around with some...stuff. And things.</p>
</header>
<section>
<h1>But Why?</h1>
Expand Down

0 comments on commit f4b2778

Please sign in to comment.