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

IE11: Figure with .img-fluid is not resized #25242

Closed
bentrm opened this issue Jan 9, 2018 · 4 comments
Closed

IE11: Figure with .img-fluid is not resized #25242

bentrm opened this issue Jan 9, 2018 · 4 comments

Comments

@bentrm
Copy link

bentrm commented Jan 9, 2018

The fluid image in a figure container is not resized at all making it overflow the content area.

On MacOS with Safari 11.0.2 it looks fine:
macos-safari

On Win 7 with Internet Explorer 11 .0.9600.18015 it looks like this:
bildschirmfoto 2018-01-09 um 14 36 47

Does seem to be somewhat related to display: inline-block on figure as deactivating that property (falling back to 'display: block' makes it look fine on IE11:
win7-ie11-display

There have been related issues (#20970, #21360, #21886, #21888) describing this behavior for older versions of Firefox or which are closed to inactivity. There doesn't seem to be a fix for IE11 (which is a supported version I suppose).

I created a minimal example on JS Bin.

@charlesprescottcollins
Copy link

Adding width: 100% to .img-fluid fixes this issue in IE11

@jonathangreco
Copy link

easy pick

@Geshtu
Copy link

Geshtu commented Jun 11, 2019

.img-responsive has the max-width:100%; display:block; and height:auto; styling. I wonder if the 'Reponsive Images' section on https://getbootstrap.com/docs/4.0/content/images/ should be updated from .img-fluid to .img-responsive?

mdo added a commit that referenced this issue May 13, 2020
Turns out this applies to IE11 as well as IE10, so this clarifies the docs callout.

Closes #25242.
@mdo mdo added this to Inbox in v4.5.1 via automation May 13, 2020
@mdo mdo added the has-pr label May 13, 2020
@XhmikosR
Copy link
Member

Fixed in #30809.

XhmikosR added a commit that referenced this issue May 14, 2020
Turns out this applies to IE11 as well as IE10, so this clarifies the docs callout.

Closes #25242.

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
@XhmikosR XhmikosR removed this from Inbox in v4.5.1 May 15, 2020
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

7 participants