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
Daron Robinson
9,055 PointsIs there a alternate way to change font size in CSS?
The questions states "Next, create a new rule that selects the h2 element. Set the font size to 53 pixels."
My code challenge keeps giving an error stating "Bummer! Make sure you're setting 'font-size' to 53 pixels."
This is my exact code that it is stating i have an error
.title { font-size: 26px; }
.h2 { font-size: 53px; }
1 Answer
mikes02
Courses Plus Student 16,968 PointsThe problem is that you are using .h2 as if it were a class, it's not a class of .h2, it's asking that you apply it to the H2 element directly, so you would just use the element selector:
h2 {
font-size: 53px;
}
Daron Robinson
9,055 PointsDaron Robinson
9,055 PointsThank you