How to find unpaired DIV culprits in Codepen?

I noticed a lot of code consoles have handy vertical lines linking the opening element to the closing element but with Codepen it doesn’t have this.

If one of my Divs is missing a pair is there a quick way to find which div is the problem?

Codepen supports collapsing elements. It is fairly faint, but if you check the left side of any of your opening tags, you will see a down arrow, when you click on it, the element is collapsed into one line, and that down arrow becomes a right arrow. If you are missing a closing div, then it would be missing that arrow.

collapseElement

Note how the div element right below is missing an arrow, because it only has an opening tag

1 Like

This has helped, thank you.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.