Ask coding questions

← Back to all posts
CSS not linking
TheDNAHero

I have been trying to edit a div in css, yet It does not seem to want to connect to the stylesheet. I have determined it is css's problem because even when I include the styles into the main html page it still doesn't work. Is this just replit being replit?

Answered by ch1ck3n [earned 5 cycles]
View Answer
Voters
TheDNAHero
Comments
hotnewtop
ch1ck3n

Well the body has no width nor height so 100% is just 0px

this is the correct CSS:

MrVoo

Which repl? You linked an empty one .-.