Bootstrap: navbar-right padding broken when using navbar-fixed-top with 3.3.6

Created on 27 Nov 2015  路  12Comments  路  Source: twbs/bootstrap

Hi all and thank you for your help.

The navbar right padding is broken when using navbar-fixed-top with Bootstrap 3.3.6.

navbar-static-top and navbar-fixed-bottom are probably impacted too.
Live example: http://plnkr.co/edit/WGhHw5?p=preview

Reference #11783

css v3

Most helpful comment

Congratulation everyone who use this will have to fix it themself by using hacks im one of them....
for other people coming here and getting disapointed look at this post for help
http://stackoverflow.com/questions/20429229/bootstrap-3-navigation-bar-right-margin-is-not-supposed-to-be-15px

if the source above is not working for any reson here is the code fix:

.navbar-nav.navbar-right:last-child {
    margin-right: 0;
}

All 12 comments

Hi @rifton007!

You appear to have posted a live example (http://run.plnkr.co/plunks/zn1Pc0/), which is always a good first step. However, according to the HTML5 validator, your example has some validation errors, which might potentially be causing your issue:

  • line 28, column 9 thru column 73: Attribute dropdown not allowed on element a at this point.

You'll need to fix these errors and post a revised example before we can proceed further.
Thanks!

(_Please note that this is a fully automated comment._)

Now, the code is updated and is valid HTML5

Reposting to trigger fresh linting: http://plnkr.co/edit/WGhHw5?p=preview

Hi @cvrebert!

You appear to have posted a live example (http://run.plnkr.co/plunks/WGhHw5/), which is always a good first step. However, according to Bootlint, your example has some Bootstrap usage errors, which might potentially be causing your issue:

  • W001: <head> is missing UTF-8 charset <meta> tag
  • W002: <head> is missing X-UA-Compatible <meta> tag that disables old IE compatibility modes
  • W003: <head> is missing viewport <meta> tag that enables responsiveness
  • line 12, column 3: W012: .navbar's first child element should always be either .container or .container-fluid

You'll need to fix these errors and post a revised example before we can proceed further.
Thanks!

(_Please note that this is a fully automated comment._)

@rifton007 Please revise the example again.

@mdo We've declared bankruptcy on the v3 navbar, correct? (X-Ref #16694)

Hi @rifton007!

You appear to have posted a live example (http://run.plnkr.co/plunks/XR178Y/), which is always a good first step. However, according to Bootlint, your example has some Bootstrap usage errors, which might potentially be causing your issue:

  • W001: <head> is missing UTF-8 charset <meta> tag
  • W002: <head> is missing X-UA-Compatible <meta> tag that disables old IE compatibility modes
  • W003: <head> is missing viewport <meta> tag that enables responsiveness

You'll need to fix these errors and post a revised example before we can proceed further.
Thanks!

(_Please note that this is a fully automated comment._)

We've declared bankruptcy on the v3 navbar, correct?

Yup!

Closing as WontFix.

Congratulation everyone who use this will have to fix it themself by using hacks im one of them....
for other people coming here and getting disapointed look at this post for help
http://stackoverflow.com/questions/20429229/bootstrap-3-navigation-bar-right-margin-is-not-supposed-to-be-15px

if the source above is not working for any reson here is the code fix:

.navbar-nav.navbar-right:last-child {
    margin-right: 0;
}

I ran into this problem and had to override the CSS as posted in the stackoverflow link by robgha01.. Not the best solution but it works..

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fohlsom picture fohlsom  路  3Comments

bellwood picture bellwood  路  3Comments

ghost picture ghost  路  3Comments

IamManchanda picture IamManchanda  路  3Comments

devdelimited picture devdelimited  路  3Comments