« Web, HTML, Tech Forum

help! profile code not working [closed]

Posted by jakearoni

posted
updated

Forum: Web, HTML, Tech

Hi. I wrote this code for my profile and it works fine on the csstest thing, but when i paste it into my actual profile, it doesnt work. 

https://github.com/gayaliens/spacehey/blob/main/codewontwork

i saw someone say that the code had to be in a certain order, but i dont know what order that is lol. this is my first code i think thats obvious


omg im so silly i didnt put the <!-- and --> around my comments. It works now!


Report Topic

1 Reply

Reply by ☣︎ flunita ☣︎

posted

sorry im like 2 days l8 but i think it might have something to do with you having multiple instances of <style> [code] </style>? try putting all the code inside one <style> block (idk wat its called) and maybe that will fix it?

u also have a few instances of "<BACKGROUND_SEARCHBAR>" and such which im guessing are meant as comments to label the code sections, but the <> brackets are used for elements, not comments, so that might be messing stuff up. the correct comment format in html would be "<!--BACKGROUND_SEARCHBAR-->"

im not liek an html/css professional or anything im totally self taught so sorry if im wrong. wish u luck w ur code :)


Permalink Report Reply

jakearoni closed this Forum Topic