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
Amandeep Dindral
8,915 PointsI am trying to link the Lake Tahoe landing page I built in CSS basics to my Designer profile that I built in the "How to
make a website" course. When I click the link it doesnt show any of the images or fonts or colors. When you link another index.html to your existing page how do you get the css to show? I thought the index.html contains all this. Help?
4 Answers
Nejc Vukovic
Full Stack JavaScript Techdegree Graduate 51,574 PointsOh yeah sorry about that. Thanks for pointing me out:
<a href="nameOfTheFolder/index.html"> This is a link </a> //this is a way to jump into that folder and serve the index.html
<a href="nameOfTheFolder/"> This is a link </a> //if your server is configured to serve index.html it will find it and serve it to the browser making the request
Hope this helps. And it shows up correctly :)
Nejc Vukovic
Full Stack JavaScript Techdegree Graduate 51,574 PointsHi Amandeep.
The best way to do this is to create a separate folder and put all your files in there.
Then all you have to do is create a link to this folder: " <a href="http://yourdomain.com/nameOfTheFolder/">This is a link</a> .
This link will change the path to that directory and the your server will find the index.html file on itself (can be configured for which data types it should look) .
I hope this helped.
Happy Coding!!!
nWEBd
Amandeep Dindral
8,915 PointsHi Nejc,
Thank your for the reply. Your code to the "link" didnt show. Do you mind posting it one more time? Thanks!
Amandeep Dindral
8,915 PointsThanks Nejc! First code worked.
Nejc Vukovic
Full Stack JavaScript Techdegree Graduate 51,574 PointsSure you are welcome.
Glad to help.
Don't forget: Happy Coding :)