Created
March 27, 2015 17:45
-
-
Save michaeloryl/b3b3b7ba59c0432a6945 to your computer and use it in GitHub Desktop.
Structure CSS attempt with vertical rows respecting content
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
<html> | |
<head> | |
<title>Structure Test Page</title> | |
<link rel="stylesheet" type="text/css" href="http://kenwheeler.github.io/structure/css/structure.css"> | |
<style> | |
[str-row-vertical] div p { | |
background-color: green; | |
color: orange; | |
} | |
[str-row-vertical] div { | |
margin: 5px; | |
border: 1px solid black; | |
height: 100%; | |
background-color: red; | |
} | |
div[str-row-vertical] { | |
background-color: blue; | |
} | |
</style> | |
</head> | |
<body> | |
<div str-row> | |
<div str-xs> | |
<div str-row-vertical> | |
<div str-xs> | |
This is a bunch of content in the str-xs div. | |
</div> | |
<div str-xs> | |
This is more content. | |
</div> | |
<div str-xs> | |
<p>Oops!</p> | |
<p>Still more content!</p> | |
</div> | |
</div> | |
</div> | |
<div str-xs> | |
<div str-row-vertical> | |
<div str-xs> | |
<p>Oops!</p> | |
<p>Still more content!</p> | |
</div> | |
<div str-xs> | |
This is a bunch of content in the str-xs div. | |
</div> | |
<div str-xs> | |
This is more content. | |
</div> | |
</div> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment