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 CSS Basics (2014) Enhancing the Design With CSS Text Shadows and Box Shadows

Task 4 css rejected, despite seeming to perform fine in Preview & workspace. Guidance, please?

Cannot figure out why Task 4 css is failing. Warning is ~"did you remember to add a comma between both values?"

.main-header { box-shadow: 0px 2px 15px #aaa, inset 0px 0px 60px 5px firebrick; }

Thanks for any guidance!

/* Complete the challenge by writing CSS below */
.main-heading {
 text-shadow: 0px 0px 5px #be7b31;

.title {
 text-shadow: 1px 3px 0px #e59740;

.main-header {
 box-shadow: 0px 2px 15px #aaa,
            inset 0px 0px 60px 5px firebrick;
<!DOCTYPE html>
    <title>Lake Tahoe</title>
    <link rel="stylesheet" href="page.css">
    <link rel="stylesheet" href="style.css">
    <header id="top" class="main-header">
      <span class="title">Journey Through the Sierra Nevada Mountains</span>
      <h1 class="main-heading">Lake Tahoe, California</h1>

        <div class="primary-content">
            <p class="intro">
                Lake Tahoe is one of the most breathtaking attractions located in California. It's home to a number of ski resorts, summer outdoor recreation, and tourist attractions. Snow and skiing are a significant part of the area's reputation.
            <a class="callout" href="#more">Find out more</a>
        </div><!-- End .primary-content -->

        <footer class="main-footer">
            <p>All rights reserved to the state of <a href="#">California</a>.</p>
            <a href="#top">Back to top &raquo;</a>

2 Answers

Hi Lee,

For 0 values in CSS, there is no need to put any unit beside them because 0 of anything is 0 regardless of unit. The challenge parser accepts the 0 values in the .main-heading selector having a px unit attached to them but will not accept it for the last selector. If you eliminate the "px" from all 0 values in the last selector, the challenge will pass.

.main-heading {
 text-shadow: 0px 0px 5px #be7b31;

.title {
 text-shadow: 1px 3px 0px #e59740;

.main-header {
/* eliminated px unit from 0 values */
 box-shadow: 0 2px 15px #aaa,
            inset 0 0 60px 5px firebrick;

Fantastic! Thank you! I'll remember this info forever, realizing also now how much more simple it will be only typing the zero... First Q in Forum, very happy to be over the hurdle with help.

Excellent! Glad to help, Lee! (Hopefully) Happy Coding! :D