button in navbar bug
Hi there, I want to use a button in my navbar, but there are some weird effect when i hover the button.( tested in Firefox 10.0.2 and Chrome 16) Here is an example: http://jsfiddle.net/MgDgD/
Is there also a chance in bootstrap to increase the distance from the .navbar-text and the .navbar-search ? In my oppinion the buttons are way too close.
Unsure why the button's hover is messed up—it appears to be a result of being within the p tag. I'll look into that more.
The spacing is up to you—you'll need to add margin to the .navbar-form or something similar.
+1 on the bug. I get the same weird effect on latest Chrome 18.0.1025.39 (beta channel) Mine isn't under a p tag.. it's under a li , under the ul.nav. spacing is all off and weird plus it shifts up when on hover.
Edit: also just noticed, if I change the a.btn to a button tag, it works as expected.
+1, have the same issue.
+1 same issue here
I think I had the same bug. Enclosing the <a> element in an empty <div> seems to solve the problem, at least in my case.
<li><div><a class='btn btn-primary btn-small' href="#">A button</a></div></li>
+1, I have the same issue. It only happens to me when using pull-right (either on the a tag or on a parent div/p/span tag) Edit: Removing the class navbar-text from the parent tag corrects the problem.
wow thanks @asaladin , that solved the problem for me too
Resolved for now by removing the offending styles on the .navbar-text a and relegated the text color change to a new class.
:+1: wrapping button within div did the magic.
Thanks asaladin
Thanks