-
Notifications
You must be signed in to change notification settings - Fork 245
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
CSS needs cross-browser work #4
Comments
I guess this is caused by lack of support for width: fit-content by IE:
|
Do you have any idea how to set a block element centered on IE without adding any DOM? |
I've been working on centering in IE for the Material Design Lite Dialog component. The only way I have found is, set a direct width, position absolute (fixed/static maybe as well) and then margin auto the left and right. IE will not center anything with a variable width from all the testing I've done. Edge however, it works perfectly. |
I wonder if this could be fixed in at least IE10 with its flexbox support. Also, doesn't IE9-10 support this? <div style="margin: 0px auto; display: inline-block; background-color: blue;">Test</div> |
What about a combination of |
It's not really ideal because many folks want to restyle or move the But I accept that there's not really many better options right now. |
Would it be appropriate to have a class to modify the styles for IE? Clearly not meaning it is a direct "polyfill" then since specs don't have classes. But for people who need IE support they can opt in to those rule changes as-needed. Without it being forced on people already using the system in production. |
In IE10, the default CSS does not make it look like in other browsers, the window is either the same width as the entire window, or it is left-aligned when it's centered in other browsers.
The text was updated successfully, but these errors were encountered: