-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
.img-responsive class breaks table with fixed widths in FF #10690
Comments
This seems more like browser bugs to me than a Bootstrap bug. The Depending on the answer, we can revisit adding this as a note to the Browser compatibility docs section. |
@bassjobsen So, did you file a bug against Firefox, or do we still need to file one? |
Sorry, i can't remember. I think i did, but i can't find it again for now. Sorry. |
@mdo <3 |
Workaround, pending correction : add |
@zessx, and all. For a workaround that fits well into your existing markup here's a fix via LESS. .img-responsive { |
Correction That works but could add extra padding on your images. Here's an update to that LESS fix. .img-responsive { That applies all the extra necessary CSS and zeros out the extra padding. |
You can also temporarily use this trick: http://css-tricks.com/snippets/css/css-hacks-targeting-firefox/ EXAMPLE: /* only Firefox */ |
Try adding: Seemed to work for me... |
A fix for the bug should land in Firefox 46: http://bugzil.la/823483 |
See: http://jsfiddle.net/cctyb/ (original: http://stackoverflow.com/questions/18846744/responsive-images-in-tables-bootstrap-3/1885903).
Possible solution seems add:
.table .img-responsive{width:100%}
to the css / less, see: http://stackoverflow.com/questions/2923710/why-do-firefox-and-opera-ignore-max-width-inside-of-display-table-cellThe text was updated successfully, but these errors were encountered: