Created
February 22, 2019 19:28
-
-
Save NimaBoscarino/78e4cee6678c803621f6bd332952904e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Page Title</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" type="text/css" media="screen" href="main.css"> | |
</head> | |
<body> | |
<div> | |
</div> | |
<div> | |
</div> | |
<div> | |
</div> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Page Title</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" type="text/css" media="screen" href="main.css"> | |
</head> | |
<body> | |
<div class="container"> | |
<div id="rebecca"> | |
Rebecca | |
</div> | |
<div id="roger"> | |
Roger | |
</div> | |
<div id="magda"> | |
Magda | |
</div> | |
</div> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Page Title</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" type="text/css" media="screen" href="main.css"> | |
</head> | |
<body> | |
<header> | |
</header> | |
<div class="chunk"> | |
<aside></aside> | |
<article></article> | |
<aside></aside> | |
</div> | |
<footer> | |
</footer> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
background-color: purple; | |
} | |
div { | |
height: 100px; | |
width: 50%; | |
background-color: yellow; | |
margin: 10px; | |
} | |
@media screen and (max-width: 600px) { | |
div { | |
background-color: green; | |
width: 100%; | |
} | |
body { | |
background-color: papayawhip; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
background-color: burlywood; | |
} | |
.container { | |
background: palevioletred; | |
padding: 10px; | |
display: flex; | |
flex-direction: row; | |
} | |
.container div { | |
width: 150px; | |
height: 150px; | |
margin: 5px; | |
color: white; | |
font-size: 20px; | |
} | |
#rebecca { | |
background: aquamarine; | |
} | |
#roger { | |
background: chocolate; | |
} | |
#magda { | |
background: firebrick; | |
} | |
@media screen and (max-width: 600px) { | |
.container { | |
flex-direction: column; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Nima's reset */ | |
html, body { | |
height: 100%; | |
margin: 0; | |
padding: 0; | |
} | |
header { | |
height: 20%; | |
background: #E57A44; | |
} | |
.chunk { | |
height: 60%; | |
background: #D6DBB2; | |
display: flex; | |
flex-direction: row; | |
} | |
aside, article { | |
height: 100%; | |
} | |
aside { | |
width: 30%; | |
background: #E3D985; | |
} | |
article { | |
width: 40%; | |
background: #422040; | |
} | |
footer { | |
height: 20%; | |
background: #BCD8C1; | |
} | |
@media screen and (max-width: 600px) { | |
.chunk { | |
flex-direction: column; | |
} | |
aside, article { | |
width: 100%; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment