Note that there are some explanatory texts on larger screens.

plurals
  1. POCreating Hexagons in css / html
    primarykey
    data
    text
    <p>Im trying to make a couple of hexagons in css /html to resemble something like this: </p> <p><a href="http://www.asta-uk.com/sites/all/themes/asta/logo.png" rel="nofollow">http://www.asta-uk.com/sites/all/themes/asta/logo.png</a></p> <p>now i have made one hexagon, and tried to copy it two other times but the top part doesn't seem to show on the second two. </p> <p>any ideas why?</p> <p>PS use IE, reason being it will only ever be used in an IE environment.</p> <pre><code> &lt;html&gt; &lt;HEAD&gt; &lt;STYLE&gt; .top { height:0; width:50; display: block; border:15px solid red; border-top-color:transparent; border-right-color:transparent; border-bottom-color:red; border-left-color:transparent; } .middle { height: 20px; background: red; width: 50px; display: block; } .bottom { height:0; width:50; display: block; border:15px solid red; border-top-color:red; border-right-color:transparent; border-bottom-color:transparent; border-left-color:transparent; } &lt;!-- Second Hex--&gt; .top2 { height:0; width:50; display: block; border: 15px solid black; border-top-color:transparent; border-right-color:transparent; border-bottom-color:black; border-left-color:transparent; } .middle2 { height: 20px; background: black; width: 50px; display: block; } .bottom2 { height:0; width:50; display: block; border:15px solid black; border-top-color:black; border-right-color:transparent; border-bottom-color:transparent; border-left-color:transparent; } &lt;!--hex 3--&gt; .top3 { height:0; width:50; display: block; border:15px solid green; border-top-color:transparent; border-right-color:transparent; border-bottom-color:green; border-left-color:transparent; } .middle3 { height: 20px; background: green; width: 50px; display: block; } .bottom3 { height:0; width:50; display: block; border:15px solid green; border-top-color:green; border-right-color:transparent; border-bottom-color:transparent; border-left-color:transparent; } &lt;/STYLE&gt; &lt;/HEAD&gt; &lt;BODY&gt; &lt;div class="hexagon"style="position: absolute; top: 0px; left: 2px;"&gt; &lt;span class="top"&gt;&lt;/span&gt; &lt;span class="middle"&gt;&lt;/span&gt; &lt;span class="bottom"&gt;&lt;/span&gt; &lt;/div&gt; &lt;!-- GREEN--&gt; &lt;div class="hexagon3" style="position: absolute; top: 48px; left: 55px;"&gt; &lt;span class="top3"&gt;&lt;/span&gt; &lt;span class="middle3"&gt;&lt;/span&gt; &lt;span class="bottom3"&gt;&lt;/span&gt; &lt;/div&gt; &lt;!-- black--&gt; &lt;div class="hexagon2" style="position: absolute; top: 120px; left: 40px;"&gt; &lt;span class="top2"&gt;&lt;/span&gt; &lt;span class="middle2"&gt;&lt;/span&gt; &lt;span class="bottom2"&gt;&lt;/span&gt; &lt;/div&gt; &lt;/BODY &lt;/html&gt; </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