Note that there are some explanatory texts on larger screens.

plurals
  1. POSolving a div positioning issue
    primarykey
    data
    text
    <p>I have a test site here:</p> <p><a href="http://www.hugoproject.com/test.html" rel="nofollow">http://www.hugoproject.com/test.html</a></p> <p>I'm trying to put a second row of the book icons beneath the first, but whatever I try doesn't work. To clarify the situation, the following code makes a single book icon appear:</p> <pre><code>&lt;div class="project"&gt; &lt;a href="#" class="HS" class="project-link"&gt;Arrow&lt;span&gt;&lt;/span&gt;&lt;/a&gt; &lt;/div&gt; </code></pre> <p>When I have two sets of the code, two icons appear, when there are three sets of the code three icons appear. But if I have four or more sets of the code only three icons appear! I want for the extra sets of code to make icons beneath the first three.</p> <p>Also at the moment when you resize the browser window this makes the top row of icons resize dynamically. I'd like to keep this feature and make both rows of icons fit on the one page such that there is no scroll bar.</p> <p>Any ideas? </p> <p><strong>HTML</strong></p> <pre><code>&lt;div id="content"&gt; &lt;div id="home-projects-wrapper"&gt; &lt;h1 class="home"&gt;Hello! My name is Brandon&lt;/h1&gt; &lt;div id="home-projects"&gt; &lt;div id="projects" class="circle"&gt; &lt;div class="project-group"&gt; &lt;div class="project"&gt; &lt;a href="#" class="HS" class="project-link"&gt;Arrow&lt;span&gt;&lt;/span&gt;&lt;/a&gt; &lt;/div&gt; &lt;div class="project"&gt; &lt;a href="#" class="HS" class="project-link"&gt;Arrow&lt;span&gt;&lt;/span&gt;&lt;/a&gt; &lt;/div&gt; &lt;div class="project"&gt; &lt;a href="#" class="HS" class="project-link"&gt;Arrow&lt;span&gt;&lt;/span&gt;&lt;/a&gt; &lt;/div&gt; &lt;div class="project"&gt; &lt;a href="#" class="HS" class="project-link"&gt;Arrow&lt;span&gt;&lt;/span&gt;&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p><strong>CSS</strong></p> <pre><code>#container { transition: left .3s; -moz-transition: left .3s; -webkit-transition: left .3s; position: absolute; width: 100%; height: 100%; left: 0; overflow-x: hidden; } #container.open { left: 270px; position: absolute; width: 100%; height: 100%; transition: left .3s; -moz-transition: left .3s; -webkit-transition: left .3s; overflow-x: hidden; } #content { width: 80%; max-width: 1170px; margin: 7% auto; position: relative; font-size: 14px; line-height: 22px; color: #777777; } .page-template-page-templateshome-php #content { width: auto; margin: 0 auto; position: static; } .single-post #content { width: 60%; } #home-projects { text-align: center; overflow: hidden; position: relative; } #projects { width: 100%; } .project-group { width: 100%; height: 100%; position: absolute; } .project { float: left; text-align: center; width: 33.3%; height:100%; } .project-link { background-size: cover; background-repeat: no-repeat; background-position: center; background-color: #adadad; position: relative; overflow: hidden; display: inline-block; width: 80%; } .circle .project-link, .circle .project-link .hover { border-radius: 100%; -moz-border-radius: 100%; -webkit-border-radius: 100%; } .project-link .hexagon-top { content: ''; display: block; position: absolute; left: 0; border-style: solid; border-bottom-color: transparent; border-left-color: #dfdfdf; border-right-color: #dfdfdf; width: 0; height: 0; z-index: 2; } .project-link .hexagon-bottom { content: ''; display: block; position: absolute; left: 0; bottom: 0; border-style: solid; border-top-color: transparent; border-left-color: #dfdfdf; border-right-color: #dfdfdf; width: 0; height: 0; z-index: 2; } .project-link .hover { position: absolute; width: 100%; height: 100%; font-size: 14px; text-align: center; color: #fff; background: #ec6136; text-decoration: none; text-transform: uppercase; display: block; opacity: 0; transition: all .3s; -moz-transition: all .3s; -webkit-transitin: all .3s; } .project-link .hover-text { display: block; margin-top: 45%; } .project-link .hover-text:after { content: '&gt;'; font-family: 'icon'; font-size: 12px; margin-left: 15px; } .project-link:hover &gt; .hover { opacity: .9; } </code></pre>
    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.
 

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