Hello, I have a question in Sololearn. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Hello, I have a question in Sololearn.

How to align html , css code to correct view in Sololearn?, i.e. like a tree view? I just copied from the template , and after pasting, it is viewing like a bunch of text.

1st Jan 2021, 6:05 AM
Maksat Ramazanov
Maksat Ramazanov - avatar
4 Answers
+ 1
You mean the code is not very well formatted or the output of the code? If you mean the code, then there are websites online that format your code for free. Just copy the code, paste it where the website tells you to, then copy the formatted code and paste it in SoloLearn. For HTML: https://www.freeformatter.com/html-formatter.html For CSS: https://www.freeformatter.com/css-beautifier.html
1st Jan 2021, 6:44 AM
XXX
XXX - avatar
+ 1
Maksat Ramazanov that's strange because it is working fine for me. Did you follow these exact steps? 1. Copy your HTML code 2. Go to the link I mentioned for HTML 3. Click "Format HTML" or "Format HTML in New Window" 4. On the page the website takes you after step 3, click "Copy to clipboard" 5. Come to the SoloLearn editor and paste the code there. These steps worked fine for me
1st Jan 2021, 9:46 AM
XXX
XXX - avatar
+ 1
Now It works, thanks!! I tried to select all the text and after pressing share button I clicked on copy button. Don't know , maybe because in Chrome Browser not allowed this process, but it works =) Cool.
1st Jan 2021, 11:30 AM
Maksat Ramazanov
Maksat Ramazanov - avatar
0
Yeah, I mean the code itself in the editor. When pasting it to the sandbox of Sololearn, it doing it unformatted. I used your links , thank you. Helpful sites, but same result, why??? Mobile version https://code.sololearn.com/Wk2qoP7Iw4aw/?ref=app
1st Jan 2021, 8:27 AM
Maksat Ramazanov
Maksat Ramazanov - avatar