Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,018 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">