The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Design changes (CSS) only on some pages of my website?
How can I make changes with CSS, only on some pages of my website? **For example:** I want to make my navigation menu smaller, but only on my main page (index.html).
I can edit ONLY the main .css file
Add extra class, specific one for the main page only, and you can set the css properties for it.
Are you able to edit HTML?
You could add a class to body element depending on what page you are on. So for your home page add `
.home .menu {} .home .menu ul li {} //etc .about .menu {} .about .menu ul li {} //etc