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

CSS Enhancing Design with CSS Styling Boxes Rounded Corners

Joshua Graber
Joshua Graber
11,785 Points

Why 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;
}
Joshua Graber
Joshua Graber
11,785 Points

Update 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...

2 Answers

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hi Joshua Graber

If 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.

:) :dizzy:

Mark Anthony San Juan
Mark Anthony San Juan
2,837 Points

removing the space between rgba and the parenthesis worked for me.. lol