How can I place slotted elements into css grid?
My HTML is like this: <div id="grid-container"> <slot name="items-to-be-filled"></slot> </div> I have formatted the above with CSS like this: #grid-container { display: grid; } However, the items that I filled into the slot seem to be out of order. I examined using developer's tool and found out that the slotted items are not being treated as grid items. Is it possible to treat slotted items just as normal children nodes? Thanks.
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.