Created
August 30, 2013 23:45
-
-
Save stevencombs/6395303 to your computer and use it in GitHub Desktop.
A basic web layout using CSS. Taken from the Codecademy "Clearing elements" assignment.
This file contains 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> | |
<link type="text/css" rel="stylesheet" href="stylesheet.css"/> | |
<title>Result</title> | |
</head> | |
<body> | |
<div id="header"></div> | |
<div class="left"></div> | |
<div class="right"></div> | |
<div id="footer"></div> | |
</body> | |
</html> |
This file contains 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
div { | |
border-radius: 5px; | |
} | |
#header { | |
height: 50px; | |
background-color: #F38630; | |
margin-bottom: 10px; | |
} | |
.left { | |
height: 300px; | |
width: 150px; | |
background-color: #A7DBD8; | |
float: left; | |
margin-bottom: 10px; | |
} | |
.right { | |
height: 300px; | |
width: 450px; | |
background-color: #E0E4CC; | |
float: right; | |
margin-bottom: 10px; | |
} | |
#footer { | |
height: 50px; | |
background-color: #69D2E7; | |
clear: both; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment