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

Garrett Soliday
Garrett Soliday
1,673 Points

Class Link

I'm not able to figure out how to link my class attribute from html to CSS.

On HTML I wrote:

<h2 class="main-image"> Summary of Qualifications </h2>

On CSS I wrote:

.main-image{
border: solid 4px black;
border-radius: 50%;
}

After doing this, it still doesn't apply the code to the browser. Please let me know if you see any mistakes.

Thanks,

Garrett S.

1 Answer

Rich Donnellan
MOD
Rich Donnellan
Treehouse Moderator 27,708 Points

Did you create a new file called resume.css and link it in the <head> of your HTML file? The Teacher's Notes for this video guides you.

<link rel="stylesheet" href="resume.css">

You should apply the .main-image class to the <img> tag, not the <h2>. Rewatch the video and follow along closely.

Garrett Soliday
Garrett Soliday
1,673 Points

I refreshed a few times and it started working. Thank you for the reply!