Note that there are some explanatory texts on larger screens.

plurals
  1. POMany DIVs inside parent DIV, CSS height issue
    primarykey
    data
    text
    <p>I am putting together a dynamic photo gallery and getting stuck trying to place thumbnails. Basically I am trying to place each thumbnail and caption in its own DIV, floated to the left. The thumbnails are working just as I want them to but for some reason the parent DIV refuses to cover the height of the thumbnail area. Here is the CSS I am using..</p> <pre><code>#galleryBox { width: 650px; background: #fff; margin: auto; padding: 5px; text-align: center; } .item { display: block; margin: 10px; padding: 10px; float: left; background: #353535; min-width: 120px; } .label { display: block; color: #fff; } </code></pre> <p>I have tried height: auto and that hasn't done anything. Here is what I am trying to style:</p> <pre><code>&lt;div id="galleryBox" class="ui-corner-all"&gt; &lt;div class="item ui-corner-all"&gt; &lt;img src="http://tapp-essexvfd.org/images/ajax-loader.gif" alt="test"/&gt;&lt;br/&gt; &lt;p&gt;&lt;span class="label"&gt;Testing&lt;/span&gt;&lt;/p&gt; &lt;/div&gt; &lt;div class="item ui-corner-all"&gt; &lt;img src="http://tapp-essexvfd.org/images/ajax-loader.gif" alt="test"/&gt;&lt;br/&gt; &lt;p&gt;&lt;span class="label"&gt;Testing&lt;/span&gt;&lt;/p&gt; &lt;/div&gt; &lt;div class="item ui-corner-all"&gt; &lt;img src="http://tapp-essexvfd.org/images/ajax-loader.gif" alt="test"/&gt;&lt;br/&gt; &lt;p&gt;&lt;span class="label"&gt;Testing&lt;/span&gt;&lt;/p&gt; &lt;/div&gt; &lt;div class="item ui-corner-all"&gt; &lt;img src="http://tapp-essexvfd.org/images/ajax-loader.gif" alt="test"/&gt;&lt;br/&gt; &lt;p&gt;&lt;span class="label"&gt;Testing&lt;/span&gt;&lt;/p&gt; &lt;/div&gt; &lt;div class="item ui-corner-all"&gt; &lt;img src="http://tapp-essexvfd.org/images/ajax-loader.gif" alt="test"/&gt;&lt;br/&gt; &lt;p&gt;&lt;span class="label"&gt;Testing&lt;/span&gt;&lt;/p&gt; &lt;/div&gt; &lt;div class="item ui-corner-all"&gt; &lt;img src="http://tapp-essexvfd.org/images/ajax-loader.gif" alt="test"/&gt;&lt;br/&gt; &lt;p&gt;&lt;span class="label"&gt;Testing&lt;/span&gt;&lt;/p&gt; &lt;/div&gt; &lt;div class="item ui-corner-all"&gt; &lt;img src="http://tapp-essexvfd.org/images/ajax-loader.gif" alt="test"/&gt;&lt;br/&gt; &lt;p&gt;&lt;span class="label"&gt;Testing&lt;/span&gt;&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>Thanks!</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.
    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