CSS CSS Basics Enhancing the Design With CSS Text Shadows and Box Shadows

Sheunesu Munyaradzi
Sheunesu Munyaradzi
2,943 Points

please help me to set a horizontal and vertical offsets 0 , blur value 60px , spread is 5px and color firebrick how ?

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

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

.main-header {
  box-shadow: inset 0  0 60px 5px #b22222;

}
index.html
<!DOCTYPE html>
<html>
  <head>
    <title>Lake Tahoe</title>
    <link rel="stylesheet" href="page.css">
    <link rel="stylesheet" href="style.css">
  </head>
  <body> 
    <header id="top" class="main-header">
      <span class="title">Journey Through the Sierra Nevada Mountains</span>
      <h1 class="main-heading">Lake Tahoe, California</h1>
    </header>

        <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.
            </p>
            <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>
        </footer>
  </body>
</html>

1 Answer

rydavim
MOD
rydavim
Treehouse Moderator 18,640 Points

Okay, so I'm assuming you are working on the last task of the challenge? It looks like there are couple of issues.

You should be defining an additional box-shadow without removing the code you wrote in the previous challenge step. Since you've passed that point, I'm going to include that code as completed.

When defining more than one box-shadow you should use a comma between the sets of values. You shouldn't delete the first set and you shouldn't define another instance of the selector.

selector { box-shadow: <values>, <values>; }

The inset value is normally defined at the tail end. I'm not sure whether or not this matters. You can refer to the W3 page on box-shadow for standard orders.

box-shadow: none|h-offset v-offset blur spread color |inset|initial|inherit

When defining the color you can use the firebrick color keyword, you don't need to use the associated hex value. This may or may not impact whether your code will pass the challenge.

.main-header {
  box-shadow: 0 2px 15px #aaa, /* your final step code goes here */;
}

It looks like you've got the general idea down, so if you work from the code from the previous steps you should be fine. Let me know if you're still feeling a bit lost and we can walkthrough a solution. Good luck, and happy coding!