The lowercase button problem | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

The lowercase button problem

Try lower cassing the letters with the "↓" button. Why it is happening so🤔🤔 This is my code https://code.sololearn.com/WkuUg3mobwCA/?ref=app

28th Jul 2021, 3:13 PM
Parth
Parth - avatar
1 Answer
+ 1
The shift is due to line 21 instead of replacing the div you are adding a div to its contents. Using outerHTML will replace the div and its contents. @line21 aLetters.outerHTML ='<div style="fontSize: 1.3em;"... </div>
29th Jul 2021, 3:30 AM
ODLNT
ODLNT - avatar