Skip to content

Instantly share code, notes, and snippets.

@ThomasWallace
Created October 20, 2020 14:05
Show Gist options
  • Select an option

  • Save ThomasWallace/3ca0e9456b23be296a206dea31b311f8 to your computer and use it in GitHub Desktop.

Select an option

Save ThomasWallace/3ca0e9456b23be296a206dea31b311f8 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Positioning Lab</title>
<style type="text/css">
* {
margin: 0px;
padding: 0px;
}
body {
background-color: #ECECEC;
font-weight: bold;
font-family: Tahoma, Geneva, sans-serif;
color: #FFF;
text-align: center;
line-height: 24px;
}
#wrapper {
background-color: #FFF;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
width: 800px;
margin-right: auto;
margin-left: auto;
}
#red {
background-color: #900;
}
#green {
background-color: #090;
}
#blue {
background-color: #00F;
}
#purple {
background-color: #63C;
}
#footer {
background-color: #666;
}
h1 {
color: #000;
font-weight: normal;
padding: 50px;
}
</style>
</head>
<body>
<h1>Exercise 1</h1>
<div id="wrapper">
<div id="red">Red</div>
<div id="green">Green</div>
<div id="blue">Blue</div>
<div id="purple">Purple</div>
<div id="footer">Footer</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment