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
Julie Curry
2,127 PointsI'm working in one of my first workspaces. I'd like to a tab to insert my css. Can someone tell me how to do this?
I've added what I believe is a file so I have css in the left side bar under the master file for the workspace. When I click on "css" I receive a message that no preview is available. I haven't added the code because a tab wasn't created for the file. Why didn't the tab show up? I have one for the HTML. How do I get it to show for the css?
Thanks in advance for your help!
1 Answer
Christopher Gilbert
6,239 PointsCan you get a screenshot of what your workspaces set up looks like?
Without further information I am thinking perhaps the css file you inserted is named incorrectly or corrupt. If you want a single file that you can insert CSS into like you would HTML I believe the best option is to create a new file by right clicking into the gray left side bar. Name the file however you want and then ENSURE you add .css as the file extension. Upon clicking your new CSS file you should see a tab appear for it in the main workspace window and can now add your css code.
Here are some screen caps of a workspace I made.
Julie Curry
2,127 PointsJulie Curry
2,127 PointsHi Christopher,
Thanks for your response. I figured out that I had to create a folder and then add the file so I was able to get a tab created.
best, Julie