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 trialWayne McDopnnell
1,450 PointsI have added some changes in workspace and saved them but they do not appear in preview.
I have edited the code in workspace and saved it. The changes I have made do not show in preview but are retained within the code in workspace.
What am I doing wrong?
8 Answers
Wayne McDopnnell
1,450 Points<!--This is my story, but you should insert your own story below. Use the <p> tag to start a new paragraph and </p> at the end of each paragraph.--> <!DOCTYPE html> <html> <head>
<title>Argh</title> <meta charset="utf-8">
<style> h1 {text-align: right; color: blue} h2 {text-align: center; color: pink} </style>
</head>
<body> <h1>Happy Building </h1> <h2>By WSM</h2>
<p> Well everything wasn't fine I woke up this morning though and my leg was completely numb. I didn't think much of it so I sat up on the side of my bed, leaned over to grab the nearest pair of pants off the ground, opened them up and began to put my legs in when I realized that one if my legs had fallen off in my sleep. This wasn't the first time, so I kept cool used a broom handle and some random sticky substance I found under my work bench and began to fashion a peg leg. </p>
<p>I hobbled into my pants and scurried off to work cause I didn't want to be late. I use the word scurry loosely, as it proved to be more challenging than I had anticipated to get to work on time. I sat in my car and attempted in vain to start the motor until the battery gave out to the last few churns of the engine. Feeling a bit defeated, I turned it around and looked at it as an opportunity to go green to work today. </p>
<p>I put on my running shoes and began jogging to work, in an effort to make this as an opportunity to get to work and stay in shape at the same time! I was turning the first corner when I heard a dog barking behind me. By looking at the measure of his mouth and the blood lust in his eyes the 200 lb behemoth didn't look as though he wanted to lick my face.</p>
<p>This is when I took to testing the limits of my physical capacity. I couldn't for the life of me think while I was frantically running away why this giant creature would be trying to devour my bones. Then suddenly dog after dog began to follow suite until I literally had a dog parade in pursuit of me. Luckily I was in peak physical condition and made it to work and through the doors just quick enough to slam it behind me only to watch the glass get covered in a slimy layer of slobber. As I held the door closed with my makeshift peg leg against the door I realized that my broom handle wasn't a broom handle at all but in my sleepy fog I had mistakenly fashioned a peg leg out of the nearest dog bone. As I lay there attempting to catch my breath and laughing at the stupidity of my mistake to fashion a peg leg so carelessly. I figure I ought to make an appointment to see a doctor.</p>
<p>I have added this and it does not show in preview </p>
</body> </html>
Wayne McDopnnell
1,450 Points''' <style> h1 {text-align: right; color: blue} h2 {text-align: center; color: pink} </style>'''
Wayne McDopnnell
1,450 PointsSorry new to this, do you want to see the entire code?
Jennifer Nordell
Treehouse TeacherThat code for the CSS looks ok. The question is if there is some other CSS that might be overriding it. And I can't see the HTML so I don't know where your h1 and h2 tags are in your code there. First, make sure there are no other definitions for your h1 and h2 in your CSS file.
Wayne McDopnnell
1,450 PointsThis is the entire worksheet
'''<!--This is my story, but you should insert your own story below. Use the <p> tag to start a new paragraph and </p> at the end of each paragraph.--> <!DOCTYPE html> <html> <head>
<title>Argh</title> <meta charset="utf-8">
<style> h1 {text-align: right; color: blue} h2 {text-align: center; color: pink} </style>
</head>
<body> <h1>Happy Building </h1> <h2>By WSM</h2>
<p> Well everything wasn't fine I woke up this morning though and my leg was completely numb. I didn't think much of it so I sat up on the side of my bed, leaned over to grab the nearest pair of pants off the ground, opened them up and began to put my legs in when I realized that one if my legs had fallen off in my sleep. This wasn't the first time, so I kept cool used a broom handle and some random sticky substance I found under my work bench and began to fashion a peg leg. </p>
<p>I hobbled into my pants and scurried off to work cause I didn't want to be late. I use the word scurry loosely, as it proved to be more challenging than I had anticipated to get to work on time. I sat in my car and attempted in vain to start the motor until the battery gave out to the last few churns of the engine. Feeling a bit defeated, I turned it around and looked at it as an opportunity to go green to work today. </p>
<p>I put on my running shoes and began jogging to work, in an effort to make this as an opportunity to get to work and stay in shape at the same time! I was turning the first corner when I heard a dog barking behind me. By looking at the measure of his mouth and the blood lust in his eyes the 200 lb behemoth didn't look as though he wanted to lick my face.</p>
<p>This is when I took to testing the limits of my physical capacity. I couldn't for the life of me think while I was frantically running away why this giant creature would be trying to devour my bones. Then suddenly dog after dog began to follow suite until I literally had a dog parade in pursuit of me. Luckily I was in peak physical condition and made it to work and through the doors just quick enough to slam it behind me only to watch the glass get covered in a slimy layer of slobber. As I held the door closed with my makeshift peg leg against the door I realized that my broom handle wasn't a broom handle at all but in my sleepy fog I had mistakenly fashioned a peg leg out of the nearest dog bone. As I lay there attempting to catch my breath and laughing at the stupidity of my mistake to fashion a peg leg so carelessly. I figure I ought to make an appointment to see a doctor.</p>
<p>I have added this and it does not show in preview </p>
</body> </html>'''
Wayne McDopnnell
1,450 PointsI have replaced the content of the entire worksheet with a copy taken from teachers notes, the preview will still not show the changes even though i have saved the content. I really am at a loss now
Jennifer Nordell
Treehouse TeacherStrange. Try clearing your browser cache and then refresh the page. Sometimes that will help with a stubborn workspace.
Wayne McDopnnell
1,450 PointsI have cleared the cache and refreshed the page. Now the original teachers notes version shows on preview. I have tried to alter and save a colour in the code but the change again does not show in preview.
Wayne McDopnnell
1,450 PointsWorking now thanks for your time
turkimohammed
695 Pointsall you need is to save the changes you've made
Jennifer Nordell
Treehouse TeacherJennifer Nordell
Treehouse TeacherIt'd be helpful to see your code. There's a link here for the Markdown Cheatsheet to show you how to post your code.