Last active
August 29, 2015 14:04
-
-
Save ChrisBAshton/6053a9ef91d89e29865e 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
/* | |
<div class="results"> | |
<div class="results_top"> | |
<h2>Results</h2> | |
</div> | |
<div class="results_bottom"> | |
<div class="share"></div> | |
</div> | |
</div> | |
*/ | |
.share { | |
dom-position: auto; | |
} | |
@media (min-width: 600px) { | |
.share { | |
dom-position: .results .results_top; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Following the rules of progressive enhancement, it's normally easier to position things differently on larger screens when design for mobile devices first. :)
Another possibility is the CSS Grids. But as always, it's not safe to use all of this wonderful new stuff yet because people don't know how to upgrade IE. :P