Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML Introduction to HTML and CSS Make It Beautiful With CSS Select and Style by Class

Jose Solorzano Jr
PLUS
Jose Solorzano Jr
Courses Plus Student 529 Points

I can't center the background or put a border on it. here is my snapshot: https://w.trhou.se/8qhn6a6564

How can I fix this?

Rodrigo Mendoza Vazquez
Rodrigo Mendoza Vazquez
2,683 Points

check your spelling, and punctuation, sometimes with one extra letter or missing punctuation can cause to not make any changes on your coding.

3 Answers

Rohald van Merode
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Rohald van Merode
Treehouse Staff

Hi Jose Solorzano Jr,

Sorry for the confusion there! I just had another look at your code and it seems that the .card-title class currently isn't present in your HTML. Treasure adds this in the video around the 1:00 mark.

After adding the class in your html on line 29 your Background title should become centered and your border will show up 😄

<h2 class="card-title">Background</h2>
Taylor Klar
seal-mask
.a{fill-rule:evenodd;}techdegree
Taylor Klar
Front End Web Development Techdegree Student 677 Points

Hello,

I know this question is one month old now but, did you remember to click 'save' on both your .html and .css workspaces?

Rohald van Merode
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Rohald van Merode
Treehouse Staff

Hi Jose Solorzano Jr,

The background is set on the header element. You can use the header selector on line 55 and set the border to that element. As for centering the background this is set in the background property on line 57. The background property is a shorthand for a couple of different properties like background-image, background-repeat and background-position. In your code the position is currently set to top center. You could change this to center center to get the image centered in the header element.

I hope this has been helpful 🙂

Jose Solorzano Jr
Jose Solorzano Jr
Courses Plus Student 529 Points

Hi Rohald van Merode,

This didn't fix this, I'm talking about the step where on line 212 we put down .card-title along with the text-align on line 213 and nothing changes after that is done. The work is saved and there is no changes after that.