Skip to content
Advertisement

Content Editable Method Not Working Properly [closed]

while working on my website I came across an odd problem for some reason I cant get the contenteditable="true" command to work on my heading with the id “hl” if anyone could help me get it working that would be awesome. I just want the contenteditable command to work so that I can change the HLHLHL text within the website.

JavaScript

Advertisement

Answer

Your problem is the seconf h1 of this pair:

JavaScript

It is positioned to overwrite the first header.

You can experiment in your browser’s devtools by making the second of these h1s have display: none – then you will be able to click on the first.

the layout is a bit odd, as if the NL bit with the dashes has been shoved in as an afterthought. A re coding of that whole part might be a good idea, to get everything into a logical order.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement