Created
January 28, 2016 15:53
-
-
Save Sapd/32664c4ef4671aa300ba to your computer and use it in GitHub Desktop.
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> | |
<title>jo</title> | |
<link rel=stylesheet href=960.css> | |
<style type=text/css> | |
.schach > div > div:nth-child(2n+0) { | |
background: black; | |
} | |
.schach > div > div { | |
height: 60px; | |
margin: 0; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="container_12 schach"> | |
<?php | |
$columns = 8; | |
$rows = 8; | |
for ($i = 0; $i < $rows; $i++) { ?> | |
<div class="grid_8 prefix_2"> | |
<?php | |
for ($n = 0; $n < $columns; $n++) { | |
?> | |
<div class="grid_1 <?php if ($n == 0) echo "alpha"; else if ($n == $columns-1) echo "omega"; ?>"> | |
</div> | |
<?php | |
} | |
?> | |
</div><div class="clear"> | |
</div> | |
<?php } ?> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment