Note that there are some explanatory texts on larger screens.

plurals
  1. POResponsive metro blocks within flexbox
    primarykey
    data
    text
    <p>how would you got about including metro look blocks within flexbox, to keep it all responsive?</p> <p>This is what I have so far(html):</p> <pre><code> `&lt;div id='main22'&gt; &lt;middle22&gt;Middle section with a picture&lt;/middle22&gt; &lt;left22&gt;Left side (metro look blocks)&lt;/left22&gt; &lt;right22&gt;Right side (metro look blocks)&lt;/right22&gt; &lt;/div&gt;` </code></pre> <p>Then this would be the css part:</p> <pre><code> `#main22 { min-height: auto; margin: 0px; padding: 0px; display: -webkit-flex; display: flex; -webkit-flex-flow: row; flex-flow: row; } #main22 &gt; middle22 { margin: 2px; padding: 3px; background: #aaaaaa; -webkit-flex: 3 1 30%; flex: 3 1 30%; -webkit-order: 2; order: 2; } #main22 &gt; left22 { margin: 2px; padding: 3px; background: #bbbbbb; -webkit-flex: 1 6 30%; flex: 1 6 30%; -webkit-order: 1; order: 1; } #main22 &gt; right22 { margin: 2px; padding: 3px; background: #cccccc; -webkit-flex: 1 6 30%; flex: 1 6 30%; -webkit-order: 3; order: 3; } @media all and (max-width: 640px) { #main22 { -webkit-flex-flow: column; flex-flow: column; } #main22 &gt; middle22, #main22 &gt; left22, #main22 &gt; right22 { -webkit-order: 0; order: 0; } #main22 &gt; left22, #main22 &gt; right22 { min-height: 50px; max-height: auto; } }` </code></pre> <p>So far it works great on all devices, the middle section should be in the middle on desktops and bigger tablets and on top when on smartphones. I would like to have a image inside it (centered). In the left and right section I would like to have 4 metro look buttons (2 on the left, 2 on the right) with icon in the middle and title in the left bottom corner, just as it is in the windows 8 metro look</p> <p>How would you go from here to make those metro look blocks?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload