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 trialJoshua Graber
11,785 PointsWhy doesn't the box-shadow work for me on the .callout links? Everywhere else works just fine!!!
No matter what I try, I can't get it to show up. I'm using Brave Browser, latest edition. Checked it on Chrome as well, no luck. This is the code I've got, which I'm pretty sure is the same as in the video.
.callout {
display: block;
width: 250px;
padding: .25rem 1rem;
margin: 1rem auto;
border-radius: 20px/10px;
box-shadow: 1px 2px 3px rbga(0,10,30,.5);
background-image: linear-gradient(-30deg, #cc4e13, papayawhip);
color: white;
text-align: center;
font-size: 1.25rem;
}
2 Answers
Jason Anders
Treehouse Moderator 145,860 PointsIf you have a look at the original code above, there is a typo in the RGBa line. You have RBGa, which would cause the CSS to not work. So, HEX values or RGBa values both would work.
:)
Joshua Graber
11,785 PointsAha! palms face
Mark Anthony San Juan
2,837 Pointsremoving the space between rgba and the parenthesis worked for me.. lol
Joshua Graber
11,785 PointsJoshua Graber
11,785 PointsUpdate for anyone who comes across this: I replaced the rgba() value with a # value, that worked. Then I switched it back to the rgba() I have listed here, and it now works just fine. eyeroll at CSS, honestly...