0

When I write more CSS codes than editing the existing ones, the css is not working. How can I fix it?

https://code.sololearn.com/WZZXO21ZNlbp/?ref=app

14th Jul 2018, 5:41 PM
B.D
B.D - avatar
3 Answers
+ 3
Use this keypress event function: function keyIn(event) { var x = event.which || event.keyCode; if(x==13) { event.preventDefault(); document.execCommand('InsertHTML', true, '<br>'); } } to force new line to create <br> could solve the issue. https://code.sololearn.com/WwJr8m0PU8iE/?ref=app
15th Jul 2018, 3:42 AM
CalviŐ˛
CalviŐ˛ - avatar
+ 2
Due keycode new line auto creates <div> element, it would disable the styles follow after.
15th Jul 2018, 3:41 AM
CalviŐ˛
CalviŐ˛ - avatar
+ 1
thank you
15th Jul 2018, 6:17 AM
B.D
B.D - avatar