Css not working properly on my website

My Css isn’t working for the second page of my Html and Css website.
Repl link:
Screenshot 2023-08-28 9.07.16 PM
Shop Html Code:
Screenshot 2023-08-28 9.06.53 PM

Thanks for any help provided.

You’re linking everything in the header. Move all that code into the head tag.


I wouldn’t be and wasn’t that because on the home page (index.html) it was using the same tags and worked fine.


Anyway, the CSS is linking fine. You just don’t have any elements in the HTML.

No that still hasn’t worked like I’ve tried adding elements and everything.

What elements did you add? I added main.mainsite and it worked fine.

I don’t think I have an element called main.mainsite.

I don’t know what it was but when I copied and pasted the working page to the non working page and removed all the un needed elements it suddenly worked.

No the element is main and the class is mainsite.

Of course it started working cause you added an element with the mainsite class again

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.