Skip to content
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

Issue with .btn-group in td.text-nowrap #20530

Closed
cervengoc opened this issue Aug 16, 2016 · 2 comments
Closed

Issue with .btn-group in td.text-nowrap #20530

cervengoc opened this issue Aug 16, 2016 · 2 comments

Comments

@cervengoc
Copy link

cervengoc commented Aug 16, 2016

Please check this demo to reproduce the issue: http://www.bootply.com/wWM2a9R8Mt#

The unexpected horizontal overflow seems to be caused by the float: left of the buttons in the btn-group. For me it was unexpected that btn-group contains floating elements. If floating is really needed, it would be good to include the clearfix in btn-groups. It seems like adding the clearfix class to btn-group doesn't solve the issue in itself.

How could I solve this table cell layout issue?

Is there any way to avoid floats in btn-gruops in future versions? I mean for example input-groups are implemented without floats, so btn-groups might have an alternative implmentation too.

@twbs-lmvtfy
Copy link

Hi @cervengoc!

You appear to have posted a live example (http://s.bootply.com/render/wWM2a9R8Mt), which is always a good first step. However, according to the HTML5 validator, your example has some validation errors, which might potentially be causing your issue:

  • line 5, column 9 thru column 30: A document must not include both a meta element with an http-equiv attribute whose value is content-type, and a meta element with a charset attribute.

You'll need to fix these errors and post a revised example before we can proceed further.
Thanks!

(Please note that this is a fully automated comment.)

@cvrebert cvrebert changed the title Issue with btn-group in table cell with text-nowrap Issue with .btn-group in td.text-nowrap Aug 17, 2016
@mdo mdo added this to the v4.0.0-alpha.6 milestone Dec 22, 2016
@mdo
Copy link
Member

mdo commented Dec 25, 2016

This will be fixed by #21394 with the move to flexbox based button groups. https://jsbin.com/zekera/edit?css,output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants