-
-
Notifications
You must be signed in to change notification settings - Fork 79k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Negative margin on '.navbar-right:last-child' in Navbar is a miscalculation #13325
Comments
Same issue here. What about targeting The first |
I've created a PR to fix this, if anyone has time to test it that'd be ace so I can make any amends needed. #13464 |
NAVER - http://www.naver.com/lee36656@naver.com 님께 보내신 메일 <Re: [bootstrap] Negative margin on '.navbar-right:last-child' in Navbar is a miscalculation (#13325)> 이 다음과 같은 이유로 전송 실패했습니다. 받는 사람이 회원님의 메일을 수신차단 하였습니다. |
Changed last-child to first-child to fix #13325
This commit follows f9fde56.
This commit follows f9fde56.
…r-right-first Changed last-child to first-child to fix twbs#13325
This commit follows f9fde56.
Address margins on .navbar-right to fix twbs#13325 twbs#13464.
Issue in: Navbar component
That's the CSS style applied on the right-floating menu items' container. It does its intended job only as long as there's only one
<element class=" ... navbar-right">
in the Navbar. Add another and it messes the spacing of the last container ("last" not in HTML but in the order of appearance in browser, considering it'sfloat: right;
).The Dashboard example template has the necessary items to reproduce the issue. Take a look at the snapshots, they should be self-explanatory.
I am not saying
margin-right: -15px;
is wrong. It's needed, but doesn't suit all cases like I clearly explained. Manually adding a class like.last-child
on the element itself is probably the way to go, but what do I know!The text was updated successfully, but these errors were encountered: