Note that there are some explanatory texts on larger screens.

plurals
  1. POCSS How to use margins with different divs
    text
    copied!<p>Edit: Added Javascript and Masonry tags. I've been looking at masonry and all my modules are the same size so I'm not sure how masonry can help me as I'm not trying to get different size elements to line up. I'm still looking through masonry tutorials as it's a little confusing at the moment. If this is the fix I apologize for adding the additional tags.</p> <p>I'm creating three divs offline, issues, and then go. I'm taking what I'm calling modules and placing them within these three divs. When I place more than 3 modules they create another row. Unfortunately my titles don't move with the modules and I have to manually go in and change the margin-top to line everything up. I'm not sure how to make it to where the issue rows will change based on how many modules are in there. Any help would be greatly appreciated.</p> <pre><code>&lt;div class="grid_17"&gt; &lt;div id="offlinetitle"&gt; &lt;p&gt;System is Offline&lt;/p&gt; &lt;/div&gt; &lt;div id="issuestitle"&gt; &lt;p&gt;System is partially offline or experiencing issues&lt;/p&gt; &lt;/div&gt; &lt;div id="issuescontents"&gt; &lt;a href="#" class="big-link" data-reveal-id="AccessModal" data-animation="none"&gt; &lt;div class="grid_3"&gt; &lt;p id="contexttitle"&gt;Access&lt;/p&gt; &lt;p id="accesssubmenu"&gt;Last Update: 08/30/2013 5:00pm&lt;/p&gt; &lt;/div&gt; &lt;/a&gt; &lt;div id="AccessModal" class="reveal-modal"&gt; &lt;h1&gt;Access&lt;/h1&gt; &lt;p&gt;This is text to describe something&gt; &lt;p4&gt;Last Update: 08/30/2013 5:00pm&lt;/p4&gt; &lt;a class="close-reveal-modal"&gt;&amp;#215;&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="gotitle"&gt; &lt;p&gt;All systems go&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>My CSS is as follows grid 17 is the parent container that everything is in then the last container is the actual modules.</p> <pre><code>.grid_17{ } #offlinetitle{ color:#FFF; font-size:25px; background:#F00; height: 35px; text-decoration:none; list-style:none; } #issuestitle{ color:#FFF; font-size:25px; background:#FC0; height: 35px; text-decoration:none; list-style:none; margin-top:15px; } #gotitle{ color:#FFF; font-size:25px; background:#093; height: 35px; text-decoration:none; list-style:none; margin-top:535px; } .container_24 .grid_3 { width: 213px; background:#CCC; height:55px; margin-top:10px; } </code></pre> <p>If more information is needed please let me know. Thank you for your help!</p>
 

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