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

Consider using CSS Grid for Materialize Grid #6282

Open
Praveen-Rai opened this issue Feb 5, 2019 · 4 comments
Open

Consider using CSS Grid for Materialize Grid #6282

Praveen-Rai opened this issue Feb 5, 2019 · 4 comments

Comments

@Praveen-Rai
Copy link

Praveen-Rai commented Feb 5, 2019

The CSS Grid Layout provides a flexible way for defining grid layouts. The specification can be found at CSS Grid Layout Module Level 1.

Along with Custom CSS Properties ( and may be HTML Web Components ) we can have a much more sophisticated grid system and a much cleaner resulting HTML. Secondly, customization would be lot easier.

I just created a small snippet to demonstrate the idea. Please refer https://codepen.io/praveen-rai/pen/KJWoqw

@Praveen-Rai Praveen-Rai changed the title Consider using CSS Grid instead Table Consider using CSS Grid instead of Table for Materialize Grid Feb 5, 2019
@felipebraga
Copy link

What do you mean about table?

Materialize is currently using a CSS Grid System.

@Praveen-Rai
Copy link
Author

@felipebraga This line made me to think that Materialize uses Table. Looking into the developer panel i figured out that it uses float and calculated width to achieve the grid layout ( Will correct the question title ). Either way it's not using CSS Grid layout, which is much more flexible.

FYI .. Please refer the attached screenshots below of Materialize Grid.

materializegrid_row
materializegrid_col

@Praveen-Rai Praveen-Rai changed the title Consider using CSS Grid instead of Table for Materialize Grid Consider using CSS Grid for Materialize Grid Feb 7, 2019
@felipebraga
Copy link

Oh, I get it.

Thanks for elaborate your question.

@Praveen-Rai
Copy link
Author

FYI .. Material Components for Web uses CSS Grid and Custom properties ... https://material.io/develop/web/components/layout-grid/

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

No branches or pull requests

2 participants