Note that there are some explanatory texts on larger screens.

plurals
  1. POFluid inline list and row alignment
    primarykey
    data
    text
    <p>I have a fluid grid built with <code>&lt;li&gt;</code> elements.</p> <p>eg:</p> <pre><code>&lt;ul&gt; &lt;li&gt;&lt;/li&gt; &lt;li&gt;&lt;/li&gt; &lt;li&gt;&lt;/li&gt; &lt;li&gt;&lt;/li&gt; &lt;li&gt;&lt;/li&gt; &lt;li&gt;&lt;/li&gt; &lt;/ul&gt;​ li { border:solid 1px green; width: 100px; min-height:50px; display: inline; margin: 10px; float: left; }​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​ </code></pre> <p>so this looks something like:</p> <pre><code>----------- ----------- ----------- | | | | | | | | | | | | ----------- ----------- ----------- ----------- ----------- ----------- | | | | | | | | | | | | ----------- ----------- ----------- </code></pre> <p>hooray!</p> <p>The problem is when I add content in one of the <code>&lt;li&gt;</code> elements which stretches the height. I want to end up with something like this:</p> <pre><code>----------- ----------- ----------- | apples | | | | | | oranges | | | | | | lemons | ----------- ----------- | cherries| ----------- ----------- ----------- ----------- | | | | | | | | | | | | ----------- ----------- ----------- </code></pre> <p>But I actually end up with something like this:</p> <pre><code>----------- ----------- ----------- | apples | | | | | | oranges | | | | | | lemons | ----------- ----------- | cherries| ----------- ----------- ----------- | | | | | | | | ----------- ----------- ----------- | | | | ----------- </code></pre> <p>booo!</p> <p>So basically, I'm trying to keep the 'row' aligned when one of the <code>&lt;li&gt;</code>s is pushed down from the above element, instead of it pushing to the available space to the right.</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.
 

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