Note that there are some explanatory texts on larger screens.

plurals
  1. POCentering text vertically in button
    primarykey
    data
    text
    <p>It should be simple to center text in a button. Unfortunately, across different browsers and platforms, I get different results. </p> <p>I've tried for hours to fix it, but nothing works everywhere.</p> <h2>Chrome, mac OS X:</h2> <p><a href="http://d.pr/i/c6Vt.jpg" rel="nofollow noreferrer">http://d.pr/i/c6Vt.jpg</a></p> <h2>Chrome, Windows 8</h2> <p><a href="http://d.pr/i/rwXX.jpg" rel="nofollow noreferrer">http://d.pr/i/rwXX.jpg</a></p> <h2>IE 10, Windows 8</h2> <p><a href="http://d.pr/i/L7Jt.jpg" rel="nofollow noreferrer">http://d.pr/i/L7Jt.jpg</a></p> <p>So, yeah. The big block doesn't appear in IE if I set a defined height, but I don't get why it breaks down in the first place.</p> <p>Here's the code:</p> <pre><code>.btn-call-to-action { background: #8e8287; margin-bottom: 15px; color: #f5f3e2; padding: 3px 18px 3px 10px; margin-top: 6px; display: inline-block; position: relative; border-bottom: none; border-radius: 2px; white-space: nowrap; .btn-call-to-action a:after { content: url('../img/general-white-arrow.svg?1369574895'); position: absolute; width: 35px; right: 15px; top: 0px; } </code></pre> <p>and the HTML (pretty simple) :</p> <pre><code>&lt;a href="about.html" class="btn-call-to-action"&gt;Want more ?&lt;/a&gt; </code></pre> <p>and the site: <a href="http://aurelieremia.be/tfa/" rel="nofollow noreferrer">http://aurelieremia.be/tfa/</a></p> <p>// edit: I think I get it. Still not centered in windows but by resetting the line height, the button looks a bit more normal. IE problem resolved, I'll try using a background-image instead (thanks Ana)</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.
 

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