Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to align divs according to screen resolution
    primarykey
    data
    text
    <p>I am trying to create a website the is contained of 8 divs. each div has a different height (same width).</p> <p>The divs should be aligned one next to the other according the browser screen resolution in the following way:</p> <pre><code> _________________________ | | | ##### ##### ##### ##### | | ##1## ##2## ##3## ##4## | | ##### ##### ##### | | ##### ##### ##### | | ##### ##6## ##### | | ##5## ##### ##7## | | ##### ##8## | |_________________________| </code></pre> <p>The idea is that once a user has a smaller width, the divs will become 3 columns in the following way:</p> <pre><code> ___________________ | | | ##### ##### ##### | | ##1## ##2## ##3## | | ##### ##### | | ##### ##### | | ##### ##5## | (There will be a scrollbar if needed) | ##4## ##### ##### | | ##### ##6## | | ##### ##8## ##### | | ##### | | | | ##7## | |___________________| </code></pre> <p>and if the user has a wider screen resolution, there will be 5 columns</p> <pre><code> _______________________________ | | | ##### ##### ##### ##### ##### | | ##1## ##2## ##3## ##4## ##5## | | ##### ##### ##### ##### | | ##7## ##### ##### | | ##### ##### | | ##6## | | ##### ##8## | |_______________________________| </code></pre> <p>Please notice that the padding between the cells and the cols stays the same.</p> <p>Also notice that the order of the divs should be kept the same, meaning if you count from left to right it should preserve the order of 1-8.</p> <p>it should support IE8</p> <p>I appreciate your assistance!</p>
    singulars
    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.
    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