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.

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,547 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