-
-
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
Carousel caption misbehavior when there's insufficient room for the text #18140
Comments
Could you post a JS Bin or JSFiddle that demonstrates the misalignment? |
https://output.jsbin.com/wahiji/1 |
Hi @moinakbarali! You appear to have posted a live example (https://jsbin.com/cuhoyaduli/edit), 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:
You'll need to fix these errors and post a revised example before we can proceed further. (Please note that this is a fully automated comment.) |
So, the actual bug seems to be that slide images aren't centered when they're narrower than the carousel itself. |
As far as i do understand @moinakbarali; the only problem is that the text is too long to fit the carousel? |
Yes @bassjobsen is correct. But as the carousel doc say that it will align content automatically it should handle long text someway or it should not say that it will align content automatically. @cvrebert that is also an issue, I fixed them using |
Closing this as a duplicate of #18171 then. |
Docs says that carousel will automatically align captions and format it. but if we add large content into caption it does not align properly.

I thought it will get dynamic position like in Popovers and tooltip that have an option to align them automatically.
I look through carousel code and does not find anything that automatically align content within caption, so this section should not say that.
http://getbootstrap.com/javascript/#optional-captions
The text was updated successfully, but these errors were encountered: