Jump to content

w3.css: w3-panel breaks CSS Grids


Wanderlust

Recommended Posts

FYI:

The w3-panel class breaks CSS Grid Layouts if added to an element with display: block, by creating an empty, unstyled element at the beginning of the grid.

Creating a wrapper element and adding w3-panel to _that_ works, but is a cludge.

Link to comment
Share on other sites

What is your code like?

Normally, grids depend on the nth-child() selector to work, I'm not sure if this is the case for W3.CSS. If you have elements that aren't part of the grid in the same level as the grid cells it will interfere with the grid.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...