Note that there are some explanatory texts on larger screens.

plurals
  1. POFloat right is not reaching all the way to the right
    text
    copied!<p>I've got my 'checkout' area at the top right inside the header of my site, it's floating right but not reaching all the way. Even with some margin-left or margin-right: -XX; it's not able to go right over and have the end of the 'checkout' button line up with the end of the navigation end. Anyone able to see why?</p> <p>Live URL: <a href="http://bit.ly/1gC4JiA" rel="nofollow">http://bit.ly/1gC4JiA</a></p> <p>HTML</p> <pre><code>&lt;div id="header-topright"&gt; &lt;!-- Social Icons --&gt; &lt;div id="social-icons"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#"&gt;&lt;img src="/Images/twitter.png" alt="social4" /&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;&lt;img src="/Images/facebook2.png" alt="social4" /&gt;&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;!-- END Social Icons --&gt; &lt;div class="clear"&gt;&lt;/div&gt; &lt;!-- Basket Total --&gt; &lt;div id="header-basket"&gt; &lt;span class="header-basket-total"&gt;1&lt;/span&gt; &lt;h5&gt;item in basket&lt;/h5&gt; &lt;a href="#"&gt;&lt;span class="header-basket-viewbtn"&gt;VIEW&lt;/span&gt;&lt;/a&gt; &lt;a href="#"&gt;&lt;span class="header-basket-viewbtn2"&gt;CHECKOUT&lt;/span&gt;&lt;/a&gt; &lt;/div&gt; </code></pre> <p>CSS</p> <pre><code>#header-topright { float: right; width: auto; height: auto; } #header-basket { margin-top: -10px; } #header-basket h5{ margin-top: -30px; margin-left: 30px; margin-bottom: 10px; font-size: 1.2em; color: #929292; } .header-basket-total { font-size: 6em; color: 8a8a8a; display: block; margin-left: -15px; } .header-basket-viewbtn { width: auto; height: auto; background-color: #0a5688; border-radius: 3px; padding: 3px 10px 3px 10px; color: #fff; margin-left: 30px; } .header-basket-viewbtn2 { width: auto; height: auto; background-color: #0a5688; border-radius: 3px; padding: 3px 10px 3px 10px; color: #fff; margin-right: 10px; } .header-basket-viewbtn2 a { text-decoration: none; } </code></pre>
 

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