Created
February 17, 2017 13:47
-
-
Save stefthoen/9d3581ee28e60dc7b1355be69827df8d to your computer and use it in GitHub Desktop.
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
<!-- This works: --> | |
<div class="cardset"> | |
<div class="card"></div> | |
<div class="card"></div> | |
</div> | |
<style> | |
.card { | |
lost-column: 1/2; | |
} | |
</style> | |
<!-- This does not --> | |
<div class="cardset"> | |
<h2 class="cardset__title">Title</h2> | |
<div class="card"></div> | |
<div class="card"></div> | |
</div> | |
<style> | |
.card { | |
lost-column: 1/2; | |
} | |
</style> | |
<!-- I can wrap the cards in a div like this so they don't have any siblings that | |
don't have a lost-column setting, but I'd rather not. Is there a better way? Thanks! --> | |
<div class="cardset"> | |
<h2 class="cardset__title">Title</h2> | |
<div class="cardset__inner"> | |
<div class="card"></div> | |
<div class="card"></div> | |
</div> | |
</div> | |
<style> | |
.card { | |
lost-column: 1/2; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment