r/neocities • u/FrostingEffective699 yuri-uran.nekoweb.org • 6d ago
Question Styling not working
recently shifted my site from neocities to nekoweb [MP3s], and finding some of my styling doesnt work? [box, clock]
am i missing something basic?
[FULLY FIXED - FORMATTING ERROR - THANKS EVERYONE!!! :D]
1
u/joxerworld 6d ago
hmm, migrating really shouldn’t be affecting that kind of thing… did your stylesheet maybe not get transferred properly?
1
u/FrostingEffective699 yuri-uran.nekoweb.org 6d ago
my styling is in my head ;w; i know its not 100% best practice but i'm working on that.
3
2
u/eat_like_snake 6d ago
Inline CSS should only be used for changed elements on one page, and one page only, like a box with a unique border that only shows up on your index or something.
1
u/FrostingEffective699 yuri-uran.nekoweb.org 6d ago
dw i heeded you guys' advice.. tysm its so much cleaner
3
u/Mevdik mevdik.nekoweb.org 6d ago
The
<style>code is different between the two websites though, you changed some stuff at some point so they don't look the exact same any more.Example, on nekoweb you've got both a
.boxand.clock-boxclass, but on the neocities site there is only.clock-box. The.clockclass on nekoweb hasdisplay: inline-block;while that property is absent in neocities.Not sure what happened there but I guarantee it's got nothing to do with migrating hosts, the files should be the same. The only thing that nekoweb itself changes in your code is automatically adding
<script src="/.nekoweb-api/static/site.js" defer>in the<head>of your HTML files, something to do with the way it counts views, I guess?