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 trialRobin Hedström
2,061 PointsNew at this, I don't se whats wrong here? it won't work :/
´´´ <!--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: center; color: green} h2 {text-align: center; color: pink} </style>
</head>
<body> <h1>Robin</h1> <h2>Aves</h2>
<!--my new story.--> <p>my name is robin and I dont think this will work, what am I doing wrong?</p>
</body> </html> ´´´
4 Answers
Shawn Ramsey
27,237 PointsYou'll need to add a semicolon after your colors.
h1 {
text-align: center;
color: green;
}
h2 {
text-align: center;
color: pink;
}
Robin Hedström
2,061 PointsSry still don't work... Its from a lesson so I just changed what was in the brackets and I still se what was there before, in the prewiv. shouldn't the page be blank if its wrong ore show a error sign of some sort?
Thanks!
Shawn Ramsey
27,237 PointsCan you provide a link to the lesson? Is this from a specific quiz or are you just practicing with the code? Also, there are no h1 or h2 headings in your HTML, so technically your CSS would make no changes to the HTML provided.
You could change your HTML to something like this to see a change using the CSS I provided above.:
<h1>Robin's Question</h1>
<p>My name is Robin and I don't think this will work, what am I doing wrong?</p>
<h2>Will Robin get an answer?</h2>
<p>We hope so.</p>
Robin Hedström
2,061 PointsOkay I moved on here is the task https://teamtreehouse.com/library/treehouse-club-css
I change pic, fine, I have uploaded the pic, it works fine but when I change what already works Ex:
img src="joy.jpg" alt="Joy"
I change to
img src="Robin.jpg" alt="Robin"
And everything els is like before. When I preview I still se the teachers face an not mine...
Ps: I got the start and Finnish things there, only thing I change is the name.
Robin Hedström
2,061 PointsRobin Hedström
2,061 PointsFirst one didn't upload as I wanted though :/
Shawn Ramsey
27,237 PointsMake sure you save the Workspace before previewing. I see the picture of you when I preview the workspace, so it seems to be working on my end.
Robin Hedström
2,061 PointsOkay thanks!!
Robin Hedström
2,061 PointsIt was bad internet connection. I reboot, now everything works fine :) Haha Sry and thax again!
Robin Hedström
2,061 PointsRobin Hedström
2,061 PointsThis looks right, it don't work in workspace though...