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

HTML Introduction to HTML and CSS (2016) Adding a New Web Page Write the CSS

Robert Freeman
Robert Freeman
1,617 Points

My HTML page doesn't look like the result of the video :(

Hi,

Having just followed "Write the CSS with Treasure Porth", I found my code looks identical to that of the tutorial; however, my results look different in HTML. I used workspaces and tried an alternative editor "MS Code" and still got the same results.

Thanks, Rob

Steven Parker
Steven Parker
229,670 Points

To facilitate analysis, make a snapshot (note: not "screenshot") of your workspace and post the link to it here.

2 Answers

Steven Parker
Steven Parker
229,670 Points

You didn't say what differences you were seeing, but I notice two at first glance.

First, the image is much wider on your page. That's because in the video, the size embedded in the URL is "200/200" but your code has "1000/200". If you make it like the video the image will be round instead of a wide oval.

Then I see the title "Summary of Qualifications" is shown in upper case in the video. Your CSS file has the rule to do this, but the h2 element in the HTML file still needs to have the class="section-title" attribute added to the start tag.

Was that it, or were you seeing other differences?

Robert Freeman
Robert Freeman
1,617 Points

Wow, You're 100% right - Thanks Steven. I totally missed that.