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 trialSheunesu Munyaradzi
3,122 Pointsplease help me to set a horizontal and vertical offsets 0 , blur value 60px , spread is 5px and color firebrick how ?
/* 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;
}
<!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 »</a>
</footer>
</body>
</html>
1 Answer
rydavim
18,814 PointsOkay, 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!