CSS Layout Issue on different browsers
Hey! I have made a masonry layout in CSS in a React project using the column property. It looks perfect on Firefox but not on other browsers. What could be the issue?
Live Site: https://my-unsplash.fly.dev/
Code: https://github.com/husnain214/my-unsplash
Just click on the Demo button.
My Unsplash
Web site created using create-react-app
GitHub
GitHub - husnain214/my-unsplash
Contribute to husnain214/my-unsplash development by creating an account on GitHub.
5 Replies
I think it's because it's still experimental feature
Like Marsman said, it's only supported by Firefox, the other browsers dont support masonry yet (and probably won't for awhile)
thank you! I thought it was a really old property but I was wrong I guess.
Is there a way I can create a fallback for other browsers using the @supports media query? Caniuse shows great browser support for the column property.
FF has supported it for year, lol. its mostly because they had subgrid, which is level 2 of the grid spec, nd then this is level 3. Since no one else had subgrid, they never could go to this.
If
columns
works, you could totally use that, and then:
@Kevin Thanks a lot Kevin! I really love your content. Thanks for being a great teacher. 🤩