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.

HTML Introduction to HTML and CSS Make It Beautiful With CSS Select and Style by Class

Why doesn't my border show up?

Ever time i follow the video exactly as they do it my border doesn't show up at all. I did the text center but after that I try to make a border and nothing appears.

Steven Parker
Steven Parker
218,861 Points

If you show your code, someone can take a look and perhaps identify the issue. Even better, make a snapshot of your workspace and post the link to it here.

Alexander Logrono
Alexander Logrono
2,841 Points

Yeah, we would need to see your code to help you out. But the usual cause is simple syntax mistakes like leaving out a semi-colon or a colon. Try going over your code very carefully.

h1 {
  border: red solid 10px;
}

As you can see you will need to make sure that between the property and the value you need a colon ( : )and then after the last value, you need a semi-colon ( ; ). Also, spelling is important!

Good luck! Let us know if you figured it out!

3 Answers

kingdavid
kingdavid
1,035 Points

Make sure that you always hit file - save all. When working with both the html file and the css file I find that hitting file - save doesn't push forward the changes. I am guess since you are working between both tabs then you need to hit file - save all in the workspace tool bar. Hope this helps.

THANK YOU!

Steven Parker
Steven Parker
218,861 Points

You may have the same symptom, but your cause could be different. You should start a fresh question and post your snapshot there.

I got it now, I was suppose to space the curly brackets twice, not once.