Note that there are some explanatory texts on larger screens.

plurals
  1. POElements of different heights suiting the div
    primarykey
    data
    text
    <p>stackoverflow users.</p> <p>I'm on my way to create a responsive design, but here comes one problem. My design is based on the list schema:</p> <pre><code>&lt;ul&gt; &lt;li&gt;First element code&lt;/li&gt; &lt;li&gt;Second element code&lt;/li&gt; (and so on (up to 20-30 elements) &lt;/ul&gt; </code></pre> <p>So basically those elments are with float attribute, so they are next to each other, as long as the page width lets them. My problem is that they have <strong>different heights</strong>. Example:</p> <pre><code>**First LI***** **Second LI****** *************** ***************** *************** ***************** *************** *************** **Third LI***** **Fourth LI****** *************** ***************** *************** ***************** *************** ***************** *************** *************** </code></pre> <p>Two column layout. The first li element (first column) has bigger height than one in the second column. The element below from the first column is right under it, but the second element doesnt fit in the space (which is left because the first element in the second column has lesser height) and is located next to the second element in the first column. </p> <p>I want to achieve:</p> <pre><code>**First LI***** **Second LI****** *************** ***************** *************** ***************** *************** **Fourth LI****** *************** ***************** **Third LI***** ***************** *************** ***************** *************** *************** *************** </code></pre> <p>If it's possible, automatically. Do I have to use column grid or can I achieve something like that the other way? I hope I made my question clear, sorry for my English - I am from Poland.</p> <p>Looking forward for hearing the answer from you!</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