-
Notifications
You must be signed in to change notification settings - Fork 72
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
Align Navbar-Dropdown(s) to the right #48
Comments
Oh, another possible solution would be to have two Navbars and arrange them in a Grid. That's my preferred one, currently. What I am asking for, is probably not even part of the bootstrap standard. |
Running into this now as well. We're voracious & happy consumers of this great library (thanks @rundis!) Will try dropdown workaround |
Cheers. Didn't have time to look at this with my push for a 4.0.0 release. |
Running into this as well! |
I would like to be able to specify whether my |
Hi! Thanks for this package. We are experimenting with converting Richard Feldman's implementation of the Real World SPA to use Elm Bootstrap. One immediate problem is the Navbar. In the templates the navbar doesn't use collapse wrapper (it's basically non-responsive) and the stylesheet makes some assumptions about it. Simply replacing their navbar with one created using Since you have asked for design ideas, let me drop my two cents. IMO having two types ( Maybe we should try to encode it in the types? The Navbar would take a list of type Group
= Brand (List (Html.Attribute msg)) (List (Html msg))
| Nav (List (Html.Attribute msg)) (List NavItem)
| Form (List (Html.Attribute msg)) (List (Html msg))
| Text (List (Html.Attribute msg)) (List (Html msg)) While rendering, each group would have some default attributes (e.g. Benefits:
Please let me know what you think. I can't promise but if we have time we will try to implement it in our app, see how it goes and if you like it prepare a PR. Once again, thanks for your efforts here. |
any updates on this? I'd really like to align some items right |
I am cloning an application that uses bootstrap (3) and it features a Navbar where the last item is a dropdown item, which is pushed all the way to the right.
You already mentioned, that as a workaround, I could model the dropdown with
Bootstrap.Dropdown
and then use that incustomItems
, which should be pushed right automagically.I also tried to apply my meagre css skills, by trying to force
float: right
onli:last-child
, but that had no effect. Absolute positioning did move the li finally, but broke, when the Navbar collapsed.I hope this describes my use-case sufficiently, and I have no trouble to do the workaround, but it might be nice to have a way to position the Navbar-Items more easily, or maybe just introducing a "spacer" item.
Thank you for the wonderful library! Let me know, if I can provide anything else.
The text was updated successfully, but these errors were encountered: