Hi! I am trying to create a template with a layout based on CSS Grid. In CSS Grid, the grid styling is specified on the parent element, and the direct child elements arrange themselves accordingly. I tried to create this structure using template regions with CSS classes.
However, when Percussion adds additional divs in the actual HTML render, the direct child region is no longer a direct child of the parent, and so the CSS Grid styling doesn’t work. The “perc-horizontal ui-helper-clearfix” div is the culprit in this case.
The :after seems like it might upset the parent/child in your grid. Have you tried overriding those classes with even an empty class,and if that didn’t work, making your overrides important?
Hi, Nate, thanks! I’m not sure of other things that could break the grid, but I do know that the simple presence of the “perc-horizontal ui-helper-clearfix” div is a problem. Because it is inserted between the parent div and the child divs, it breaks up that relationship in the DOM, and CSS Grid is built on that relationship. What I could do is add this styling code:
But that is a bit of a hack and kind of redundant, since I already have this grid styling available in a reusable form. I might still just need to do that, but I wanted to see whether anyone had any other ideas. Thanks a lot!