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 trialLindsey Davis
2,301 PointsHow do I get the link for the browser?
I know this is probably a simple question but how do I get the link to view the code in the browser?
6 Answers
Tommy Gebru
30,164 PointsHey Lindsey, are we talking about working from Treehouses Workspaces?if that's the case a Preview button should be located in the upper right hand corner of your text editor.
Lindsey Davis
2,301 PointsI was actually using sublime text editor. I think that's what the video recommended. Is there an easy way to get the link from sublime?
Tommy Gebru
30,164 PointsI myself have not used/tried this but here is a site demonstrating the process, please tell me if that helped.
Colin Stodd
3,160 PointsIf you are talking about adding a Cascading Style sheet you:
add
<link rel="stylesheet" type="text/css" href="YOURStyleSheetNameHere.css" />
to your .html file's head. So it should be something like
<head>
<link rel="stylesheet" type="text/css" href="YOURStyleSheetNameHere.css" />
</head>
You need to make sure that the .css file is in the same directory/folder as your .html file.
Then find the file on your computer, and click on the .html file to open in your browser.
Lindsey Davis
2,301 PointsI have not been able to view it yet. I've been trying a few different options. I'm still figuring it out.
Mosses Akizian
8,136 PointsHey Lindseyβ just start your favorite browser, navigate to the index.html page and click open.
- Start your browser
- Click file > open file (might differ between browsers)
- Navigate to the index.html file (e.g. /where/you/saved/css-foundations/1-getting-started-with-css/adding-css-to-page/start/index.html
- Click open