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
Caitlin Megonigal
2,028 PointsRelative path is not working...again.
I am having trouble with my relative path again, and I am not really sure what to do at this point.
Here is my index.html:
<!DOCTYPE html> <html> <head> <title>CSS Selectors</title> <link rel="stylesheet" type="text/css" href="css/style.css"> </head> <body> <h1>Learning About <span>CSS Selectors</span></h1> <p> <span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam quis tristique magna.</span> Phasellus sapien mauris, aliquet quis ullamcorper nec, vestibulum eu tortor. Duis id venenatis augue. Suspendisse mauris eros, hendrerit vitae posuere nec, aliquet eget magna. Vivamus quis nunc non ipsum imperdiet pharetra id ac metus. Vestibulum aliquet eu velit in pulvinar. Donec feugiat quam leo, vel pulvinar quam pellentesque pretium. </p> <h2>Selectors Match <span>HTML Elements</span></h2> <p> Vestibulum malesuada, orci id consectetur congue, justo augue porta lorem, at varius turpis mauris sit amet est. Ut vulputate dictum vestibulum. <span>Integer at vestibulum lacus</span>, venenatis auctor diam. Duis luctus, leo at ultrices placerat, est ante placerat leo, vitae tempor lorem augue a sem. Tiam vitae porta libero. Proin ac eros non lacus scelerisque elementum. Integer vulputate enim non eros tincidunt, sed laoreet sapien. </p> <p> Pellentesque posuere risus a purus auctor sagittis. Quisque lorem ligula, imperdiet vel faucibus vitae, mollis at leo. Proin ac commodo odio, sed tempor nibh. Nunc vel mauris in quam ultrices ornare. Aenean sagittis eget magna ut sodales. </p> </body> </html>
And here is my CSS:
- { margin: 0; padding: 0; color: #ccddee; }
1 Answer
Don Shipley
19,488 PointsDoes not look like you have your text inside the body tag
it should look something like this
<!DOCTYPE html>
<head>
your css link
</head>
<body>
your text
</body>
</html>