Created
January 26, 2016 20:27
-
-
Save maxxcrawford/f1ed6d94ea69d5abaa15 to your computer and use it in GitHub Desktop.
X Layout Div
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> | |
<meta charset="utf-8"> | |
<title>X</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
<style> | |
/* Put Styles Here */ | |
div { | |
width: 33.333333%; | |
position: absolute; | |
height: 33.3333%; | |
background: black; | |
top: 0; | |
left: 0; | |
background: #046380; | |
} | |
div + div { | |
left: 33.333%; | |
background: #c1cdd1; | |
} | |
div + div + div { | |
left: 66.666%; | |
background: #046380; | |
} | |
div + div + div + div { | |
top: 33.333%; | |
left: 0; | |
background: #c1cdd1; | |
} | |
div + div + div + div + div { | |
top: 33.333%; | |
left: 33.333%; | |
background: #046380; | |
} | |
div + div + div + div + div + div { | |
top: 33.333%; | |
left: 66.666%; | |
background: #c1cdd1; | |
} | |
div + div + div + div + div + div + div { | |
top: 66.666%; | |
left: 0; | |
background: #046380; | |
} | |
div + div + div + div + div + div + div + div { | |
top: 66.666%; | |
left: 33.333%; | |
background: #c1cdd1; | |
} | |
div + div + div + div + div + div + div + div + div { | |
top: 66.666%; | |
left: 66.666%; | |
background: #046380; | |
} | |
</style> | |
</head> | |
<body> | |
<div></div> | |
<div></div> | |
<div></div> | |
<div></div> | |
<div></div> | |
<div></div> | |
<div></div> | |
<div></div> | |
<div></div> | |
<script src="http://code.jquery.com/jquery.min.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment