Skip to content

.img-fluid Should not apply display:block by default #20767

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

Closed
arctic-ice-cool opened this issue Sep 22, 2016 · 1 comment
Closed

.img-fluid Should not apply display:block by default #20767

arctic-ice-cool opened this issue Sep 22, 2016 · 1 comment

Comments

@arctic-ice-cool
Copy link

The .img-fluid class applies display: block; styling by default. This is a completely different & additional behaviour to what .img-fluid is meant to do.

Shouldn't .img-block be a seperate class?

@mdo mdo added this to the v4.0.0-alpha.5 milestone Oct 9, 2016
@mdo
Copy link
Member

mdo commented Oct 9, 2016

Agreed that display: block is unnecessary for the max-width and height: auto to have an affect—see https://jsbin.com/tefukez/. I'll remove that in Alpha 5.

However, I won't be adding img-block—there are other display utils for that.

@mdo mdo closed this as completed in 88bf5af Oct 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants