CSS CSS Basics Enhancing the Design With CSS Media Queries

Clayton Bowland
Clayton Bowland
2,639 Points

media queries

im not getting the text color right,please help

/* Complete the challenge by writing CSS below */
@media (max-width: 1020px) {

background: tomato; {
color: white; {
<!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 -->

1 Answer

Cooper Runstein
Cooper Runstein
11,766 Points

It 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) {
      background: tomato; 
      color: white;