Change your CSS grid definition:
to:
and you are done writing your first Custom Element/Web Component
No more hunting for that closing </div>
YES! any tagname with a (-) dash in the name is a valid HTMLElement
Also see: https://dev.to/dannyengelman/not-a-div-insidein-sightsite-18lj
Top comments (0)