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 trialSai Sanjeev Balakrishnan
243 PointsThe CSS code I type in is not implying any effect in my page
I have followed along all the videos and I have types in the code as it is,but the CSS code I type in is not affecting the web page in any manner.Why is that so?Ani Idea?
2 Answers
Yaroslav Kleshchev
8,744 PointsYou must add a link tag to your html.
<link rel = "stylesheet" href = "css/style.css">
Href being the css file that you want to include.
Greg Kaleka
39,021 PointsHi Sai,
We need to see your code to know what the problem is (I recommend watching the video in the right sidebar called Tips for asking questions --> ).
My guess would be your problem is in your HTML, where you link to your stylesheet. Make sure your code looks something like this:
<link rel="stylesheet" href="/css/style.css">
Christopher Beynon
10,258 PointsChristopher Beynon
10,258 PointsHi, Could you add the code you are using so we can check if you have any errors.