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
Dina Hafez
14,454 PointsThe small caps font for abbr isn't working.
Hello,
I have no idea why the Alegreya Sans SC isn't working?
I have everything in the right place so someone please help!
Thank you.
6 Answers
fluffyllama
11,682 PointsCheck your @import url to make sure you're importing the fonts correctly from Google. I see
@import url('https://fonts.googleapis.com/cssfamily=Alegreya+Sans+SC:400,400i|Alegreya+Sans:400,400i|Alegreya:400i,900i');
when it should be
@import url('https://fonts.googleapis.com/css?family=Alegreya+Sans+SC:400,400i|Alegreya+Sans:400,400i|Alegreya:400i,900i');
Do you see the punctuation that is missing?
fluffyllama
11,682 PointsYou have an extra CSS property that is changing your small caps. I think your problem is in the code below:
abbr {
font-family: 'Alegreya Sans SC', 'Alegreya Sans', Verdana, Tahoma, sans-serif;
text-transform: lowercase;
text-decoration: none;
}
Dina Hafez
14,454 PointsHello,
I added the text decoration property because in the video there are no underlines for the Small Caps abbr, and that is why I used it but I don't think that intervals with the font-family and text-transform.
I even tried right now and comment it out but still not working...
So any idea why it is not working??
fluffyllama
11,682 PointsYou were correct to add the 'text-decoration' property. Keep that line!
When I previewed your Workspace and inspected the 'abbr' class with Chrome Developer Tools, I found that the font is 'Alegreya Sans SC', which is correct! But the next line of your code is transforming it from small caps to lowercase. Delete the text-transform property.
Dina Hafez
14,454 PointsIt is not working as well. It is not changed to Small Caps but when I removed the text-transform it is like UpperCase but not small caps. Check the difference between the video and the workspace. It is not similar :(
Dina Hafez
14,454 PointsThank you so much. I don't know why this punctuation is missing, I copy it and paste it from google fonts. Anyway thank you.