Note that there are some explanatory texts on larger screens.

plurals
  1. POcenter a div on page creates random pixel below class
    primarykey
    data
    text
    <p>I'm no pro at css and found a progress tracker I like, but need it centered on page. But whenever I center it I get a random pixel at bottom of first two arrows: (see screenshot)</p> <p>I want it centered on page and am using margin auto with a hardcoded 380px. I'm sure the hardcoded 380px should be something not hardcoded but "auto" did same thing.</p> <p><img src="https://i.stack.imgur.com/LH0M6.png" alt="the first two arros have pixel sticking down"></p> <p>css:</p> <pre><code>div#wizard.wizard { width: 380px; margin-left:auto; margin-right:auto; } .wizard a { padding: 12px 12px 10px 12px; margin-right:5px; background:#efefef; position:relative; display:inline-block; } .wizard a:before { width:0px; height:0px; border-top: 20px inset transparent; border-bottom: 20px inset transparent; border-left: 20px solid #fff; position: absolute; content: ""; top: 0; left: 0; } .wizard a:after { width:0px; height:0px; border-top: 20px inset transparent; border-bottom: 20px inset transparent; border-left: 20px solid #efefef; position: absolute; content: ""; top: 0; right: -20px; z-index:2; } .wizard a:first-child:before {border:none;} .wizard a:last-child:after {border:none;} .wizard a:first-child { -moz-border-radius: 4px 0 0 4px; -webkit-border-radius: 4px 0 0 4px; border-radius: 4px 0 0 4px; } .wizard a:last-child { -moz-border-radius: 0 4px 4px 0; -webkit-border-radius: 0 4px 4px 0; border-radius: 0 4px 4px 0; } .wizard .badge {margin:0 5px 0 18px; position:relative; top:-1px;} .wizard a:first-child .badge {margin-left:0;} .wizard .current {background:#007ACC; color:#fff;} .wizard .current:after {border-left-color:#007ACC;} </code></pre> <p>calling page:</p> <pre><code> &lt;div class="wizard" id="wizard"&gt; &lt;a class="current"&gt;&lt;span class="badge badge-inverse"&gt;1&lt;/span&gt; Your Information&lt;/a&gt; &lt;a&gt;&lt;span class="badge"&gt;2&lt;/span&gt; Preview&lt;/a&gt; &lt;a&gt;&lt;span class="badge"&gt;3&lt;/span&gt; Your Copy&lt;/a&gt; &lt;/div&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