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 CSS Fundamentals CSS Box Model

Carianna Niska
Carianna Niska
549 Points

CSS code not changing border or height on image. Not sure what I did wrong.

1 Answer

Steven Parker
Steven Parker
232,380 Points

I don't see any code in the CSS that would affect the height, but the border is not being applied due to a syntax error in the HTML. Instead of this (using a hyphen):

    <div id-"intro">

It should be this (using an equal sign):

    <div id="intro">
Carianna Niska
Carianna Niska
549 Points

That fixed it. Thank you so much!

Steven Parker
Steven Parker
232,380 Points

Carianna Niska — Glad to help. You can mark a question solved by choosing a "best answer".
And happy coding!