
Clayton Bowland
2,639 Pointsmedia queries
im not getting the text color right,please help
/* Complete the challenge by writing CSS below */
@media (max-width: 1020px) {
}
.main-header{
background: tomato; {
}
color: white; {
}
<!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 -->
</body>
</html>
1 Answer

Cooper Runstein
11,766 PointsIt looks like you have extra brackets inside your CSS, and haven't enclosed the media query. The challenge just has a really unhelpful hint that makes it seem like the color wasn't declared correctly..
@media (max-width: 1020px) {
.main-header{
background: tomato;
color: white;
}
}