Please have a look at this one : http://83.212.101.132/betdk/home/two
When the user scrolls, the navbar goes to the top (using the
affixplugin).However, it takes up the whole row (with "Home" going to the left).
What should I do in order for it to :
- retain the full-width blue-ish background
- the contents remain centered
This is the affix-related CSS :
.affix {
position: fixed;
top: 0;
width: 100%;
left:0;
z-index:10;
box-shadow: 0 0 30px black;
-webkit-border-radius: 0 !important;
-moz-border-radius: 0 !important;
border-radius: 0 !important;
}
.affix .subcon {
/* The wrapper around the navbar contents */
}
Any ideas?
UPDATE
Unykvis' answer does work.
With one addition (to avoid messing up the navbar contents in its original form)
.navbar .container {
padding-left:0px;padding-right:47px
}
.navbar.affix .container {
padding-left:15px;padding-right:15px;
}

