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

Miriam Allman
PLUS
Miriam Allman
Courses Plus Student 1,761 Points

Lake Tahoe is showing as grey but should be white - what is wrong with my code

/* Type Selectors */

/*

This helpful comment spans mulitple lines..... ..... */

body { color: #878787; margin: 0;
font-size: 1em; }

h1 { font-size: 5.625rem; / * 90px / 16px * / color: white;
} h2 { font-size: 53px;
} h3 { font-size: 20px; color: #48525c;
}

/* ID Selectors */

main-footer {

padding-top: 60px;
padding-bottom: 60px;
border-bottom: solid 10px orange;

}

/* Class Selectors */

.main-header { background-color: orange;
font-size: 2em; }

.title { color: white; font-size: 1.625rem; /* 26px/16px */ }

.primary-content, .secondary-content { width: 60%;

}

.primary-content { text-align: center;
}

.t-border { border-top: 2px solid lightgrey;
}

a:link{ color: orange;
}

a:visited { color: lightblue;
}

a:hover { color: forestgreen;
}

a:active { color: lightcoral;

}

a:focus { color: white; background-color: orange;
}

Dave StSomeWhere
Dave StSomeWhere
19,870 Points

What is the markup/HTML for Lake Tahoe?

3 Answers

Dave StSomeWhere
Dave StSomeWhere
19,870 Points

Is it the below text in a h1 tag that should be white letters?

<h1> Lake Tahoe, California</h1>

Where you are targeting it with the following css - I think you just need to fix your comments:

/* bad comment - space between slash and * */
h1 { 
  font-size: 5.625rem; / * 90px / 16px * / 
  color: white;
} 
/* good comment */
h1 { 
  font-size: 5.625rem;  /* 90px / 16px */ 
  color: white;
} 
Miriam Allman
PLUS
Miriam Allman
Courses Plus Student 1,761 Points

Here is the HTML markup for Lake Tahoe <html> <head> <title>Lake Tahoe</title> <link rel="stylesheet" href="css/style.css"> </head> <body> <header id="top" class="main-header"> <span class="title"> Journey through the Sierra Nevada Mountains</span> <h1> Lake Tahoe, California</h1> </header>

      <div class="primary-content t-border">
      <p>
          Lake  Tahoe is one of the most breathtaking attractions located in California. It's home to a number of ski rsorts, summer outdoor recreation, and tourist attractions. Snow and skiing are a significant part of the area's reputation.
    </p>
    <a href="#more"> Find out more</a>
    <h2>Check out all the Wildlife</h2>
    <p>
        As spawning season approached the fish acquire a humpback and protuberant jaw.After spawning they die and their carcasses provide a feast for gatherings of <a href="#mink">mink</a>, <a href="#bears">bears, and <a href="#eagles">Bald eagles</a>.
    </p>
    <a href="#wildlife"> See the Wildlife</a>
</div>

<div class="secondary-content t-border">
    <h3>From Tents to Resorts</h3>
    <p>
        Lake Tahoe is full of wonderful places to stay. You have the ability to sleep in the outdoors in a tent, or relax like a king at a five star resort. Here are our top three resorts:
        <ul>
        <li><a href="#Hotel">Lake Tahoe resort Hotel</li>
        <li><a href="#Resorts">South Lake Tahoe Resorts</li>
        <li><a href="#Lodging">Tahoe Ski Resort Lodging</li>
        </ul>
        </p>
    <h3>Pack Accordingly</h3>
    <p>
    One of most important things when it comes to traveling through the great outdoors is packing accordingly. Here are a few tips:
</p>    
<ol>
    <li>Bring layers of clothing</li>
    <li>Pack sunscreen</li>
    <li>Carry extra water just in case</li>
    <li>Pack light</li> 
</ol>

</div>

<footer id="main-footer" class="t-border"> <p>All rights reserved to the state of <a href="#California"> California</a>.</p> <a href="#top">Back to top »</a> </footer> </body> </html>

</body>
</html>