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

CSS How to Make a Website CSS: Cascading Style Sheets Center the Wrapper

The 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?

Hi, Could you add the code you are using so we can check if you have any errors.

2 Answers

You 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
Greg Kaleka
39,021 Points

Hi 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">