<p dir="auto">I'm using the following navigation bar:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;div class=&quot;navbar navbar-inverse navbar-static-top&quot;&gt;
&lt;div class=&quot;navbar-header&quot;&gt;
    &lt;button type=&quot;button&quot; class=&quot;navbar-toggle&quot; data-toggle=&quot;collapse&quot; data-target=&quot;.navbar-collapse&quot;&gt;
        &lt;span class=&quot;icon-bar&quot;&gt;&lt;/span&gt;
        &lt;span class=&quot;icon-bar&quot;&gt;&lt;/span&gt;
        &lt;span class=&quot;icon-bar&quot;&gt;&lt;/span&gt;
    &lt;/button&gt;
    &lt;a class=&quot;navbar-brand&quot; href=&quot;#&quot;&gt;REALLY BAD!&lt;/a&gt;
&lt;/div&gt;
&lt;div class=&quot;collapse navbar-collapse&quot;&gt;
    &lt;ul class=&quot;nav navbar-nav navbar-right&quot;&gt;
        &lt;li class=&quot;active&quot;&gt;&lt;a href=&quot;#&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#about&quot;&gt;About&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#contact&quot;&gt;Contact&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;button class=&quot;btn navbar-btn&quot;&gt;A&lt;/button&gt;&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;&lt;!--/.nav-collapse --&gt;
&lt;/div&gt;"><pre class="notranslate"><code class="notranslate">&lt;div class="navbar navbar-inverse navbar-static-top"&gt;
&lt;div class="navbar-header"&gt;
    &lt;button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"&gt;
        &lt;span class="icon-bar"&gt;&lt;/span&gt;
        &lt;span class="icon-bar"&gt;&lt;/span&gt;
        &lt;span class="icon-bar"&gt;&lt;/span&gt;
    &lt;/button&gt;
    &lt;a class="navbar-brand" href="#"&gt;REALLY BAD!&lt;/a&gt;
&lt;/div&gt;
&lt;div class="collapse navbar-collapse"&gt;
    &lt;ul class="nav navbar-nav navbar-right"&gt;
        &lt;li class="active"&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#about"&gt;About&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#contact"&gt;Contact&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;button class="btn navbar-btn"&gt;A&lt;/button&gt;&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;&lt;!--/.nav-collapse --&gt;
&lt;/div&gt;
</code></pre></div>
<p dir="auto">see <a href="http://bootply.com/101299" rel="nofollow">http://bootply.com/101299</a> for more examples and my proposed fix.</p>
<p dir="auto">(Note that this was generated using the Bootply template "Basic starter", and removing the <code class="notranslate">container</code> around the <code class="notranslate">div</code>s. (also see <a href="http://getbootstrap.com/components/#navbar-default" rel="nofollow">http://getbootstrap.com/components/#navbar-default</a> ). My example only differs from the documentation example by using <code class="notranslate">navbar-static-top</code>.</p>
<p dir="auto">The error is caused by a negative <code class="notranslate">margin-right</code> for the last <code class="notranslate">ul</code> in the bar. This makes sense if there is container, but none, if there is none (we would need a positive margin instead).</p>
<p dir="auto">I propose setting this margin only if there <em>is</em> a container in the nav (which could be done by adding a simple <code class="notranslate">.container</code> in the corresponding rule).</p>
<p dir="auto">Is this a bug or am I doing something wrong here?</p>
<p dir="auto">The navbar right padding is broken when using navbar-fixed-top with Bootstrap 3.0.3.<br>
Was working fine with Bootstrap 3.0.2.</p>
<p dir="auto">navbar-static-top and navbar-fixed-bottom are probably impacted too.</p>
<p dir="auto">Live example: <a href="http://plnkr.co/edit/zn1Pc0?p=preview" rel="nofollow">http://plnkr.co/edit/zn1Pc0?p=preview</a></p>
<p dir="auto">With navbar-fixed-top:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/d88857b2752f9c8c13dc7235ccc85d4c317994d715a6900918d09174f2c0f3ac/687474703a2f2f7333302e706f7374696d672e6f72672f716871743134306b682f53637265656e5f53686f745f323031335f31325f30385f61745f355f33325f30375f504d2e706e67"><img src="https://camo.githubusercontent.com/d88857b2752f9c8c13dc7235ccc85d4c317994d715a6900918d09174f2c0f3ac/687474703a2f2f7333302e706f7374696d672e6f72672f716871743134306b682f53637265656e5f53686f745f323031335f31325f30385f61745f355f33325f30375f504d2e706e67" alt="With navbar-fixed-top" data-canonical-src="http://s30.postimg.org/qhqt140kh/Screen_Shot_2013_12_08_at_5_32_07_PM.png" style="max-width: 100%;"></a></p>
<p dir="auto">Without navbar-fixed-top:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/b9f744b05105f2e81a1bd31025d9ece20d875ef7476f42a813a9f592dcdfe4fd/687474703a2f2f7333302e706f7374696d672e6f72672f796272656d693864642f53637265656e5f53686f745f323031335f31325f30385f61745f355f33325f33305f504d2e706e67"><img src="https://camo.githubusercontent.com/b9f744b05105f2e81a1bd31025d9ece20d875ef7476f42a813a9f592dcdfe4fd/687474703a2f2f7333302e706f7374696d672e6f72672f796272656d693864642f53637265656e5f53686f745f323031335f31325f30385f61745f355f33325f33305f504d2e706e67" alt="Without navbar-fixed-top" data-canonical-src="http://s30.postimg.org/ybremi8dd/Screen_Shot_2013_12_08_at_5_32_30_PM.png" style="max-width: 100%;"></a></p>
<p dir="auto">The issue is most probably related to this commit: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/twbs/bootstrap/commit/5a0365524d8a190c718bcb4950c423c9bef75bd9/hovercard" href="https://github.com/twbs/bootstrap/commit/5a0365524d8a190c718bcb4950c423c9bef75bd9"><tt>5a03655</tt></a></p>
<p dir="auto">Version 3.0.3 contains <a href="https://github.com/twbs/bootstrap/blob/v3.0.3/less/navbar.less#L80">the following code</a>:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="    // Undo the collapse side padding for navbars with containers to ensure
    // alignment of right-aligned contents.
    .navbar-fixed-top &amp;,
    .navbar-static-top &amp;,
    .navbar-fixed-bottom &amp; {
      padding-left: 0;
      padding-right: 0;
    }"><pre class="notranslate">    <span class="pl-c">// Undo the collapse side padding for navbars with containers to ensure</span>
    <span class="pl-c">// alignment of right-aligned contents.</span>
    <span class="pl-kos">.</span><span class="pl-s1">navbar</span><span class="pl-c1">-</span><span class="pl-s1">fixed</span><span class="pl-c1">-</span><span class="pl-s1">top</span> <span class="pl-c1">&amp;</span><span class="pl-kos">,</span>
    <span class="pl-kos">.</span><span class="pl-c1">navbar</span><span class="pl-c1">-</span><span class="pl-s1">static</span><span class="pl-c1">-</span><span class="pl-s1">top</span> <span class="pl-c1">&amp;</span><span class="pl-kos">,</span>
    <span class="pl-kos">.</span><span class="pl-c1">navbar</span><span class="pl-c1">-</span><span class="pl-s1">fixed</span><span class="pl-c1">-</span><span class="pl-s1">bottom</span> <span class="pl-c1">&amp;</span> <span class="pl-kos">{</span>
      <span class="pl-s1">padding</span><span class="pl-c1">-</span><span class="pl-c1">left</span>: <span class="pl-c1">0</span><span class="pl-kos"></span><span class="pl-kos">;</span>
      <span class="pl-s1">padding</span><span class="pl-c1">-</span><span class="pl-s1">right</span>: <span class="pl-c1">0</span><span class="pl-kos">;</span>
    <span class="pl-kos">}</span></pre></div>
<p dir="auto">3.0.2 <a href="https://github.com/twbs/bootstrap/blob/v3.0.2/less/navbar.less#L80">does not</a>.</p>