Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML How to Make a Website Adding Pages to a Website Style New Pages

ayele girma
ayele girma
3,830 Points

help, why my CSS code did not apply to my index.html and about.html ?

help, why my CSS code did not apply to my index.html and about.html ? because on view workspace, the web page should be the same instructor web page but no CSS code applied.

2 Answers

Nicholas Vogel
Nicholas Vogel
12,318 Points

Did you link the css file in the head of each .html document?

<link rel="stylesheet" src="/main.css">

replace /main.css with whatever the css file actually is.

ayele girma
ayele girma
3,830 Points

thanks, but no change.

Nicholas Vogel
Nicholas Vogel
12,318 Points

Could you share your code so I can see what you have typed up? Just copy and paste it into a comment.