Quantcast
Channel: Active questions tagged flexbox - Stack Overflow
Viewing all articles
Browse latest Browse all 1675

How can I define the stack order on mobile devices using Bulma

$
0
0

I am taking the Bulma flexbox CSS framework for a spin - so far its pretty neat! The only stumbling block I've found is that I can't seem to set the display order for mobile devices.

<div class="columns"><div class="column foo">Foo</div><div class="column bar">Bar</div>  // Would like this to be first on small deviecs</div>

Here is what my CSS looks like:

body, html {    background-color: blue;}.foo { order: 2; }.bar { order: 1; }@media only screen and (min-width: 769px) {    body, html {        background-color: red;    }    .foo { order: 1; }    .bar { order: 2; }}

Viewing all articles
Browse latest Browse all 1675

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>