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

Urgent help 1

I Need my nav h3 in white color but it is coming in grey please some one help me

My html Code: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title> Die Hard </title> <link rel="stylesheet" href="normalize.css"> <link href='http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="main.css"> </head> <header> <h1>Die Hard</h1> <h2>Be the Change You Wish To See! </h2> </header>

<nav>

<ul>
<li> <a href="index.html">About us</a></li> <li><a href="event.html">Events</a></li> <li><a href="contact.html">Contact</a></li> </ul>
<br> <div id="Update"> <ul> <li> <h3>Upcoming Event: Food For All</h3> <h3>Recent Events: Blood Donation Campaign</h3></li> //this i need in white </ul>
</div> </nav>

<body>

       <img src="dhfinal.jpg" class="jayesh">

    <br>

</body> </html>

My css for it

nav { text-align: center; padding: 10px 0; margin: 20px 0 0; }

nav ul { list-style: none; margin: 0 10px; padding: 0; }

nav li { display: inline-block; }

nav a { font-weight: 800; padding: 15px 10px; font-family: cursive,sans-serif }

update

{ text-align: center; margin: -5px 0 0; font-weight: normal; font-family: cursive; color: white; text-decoration-color: white; }

update h3

{ text-align: center; color: white; }

1 Answer

You've used a capital in your id, try

#Update h3 { color: #ffffff; }

Also in your html it looks like you forgot the opening tag for your ul twice. Add the opening ul tag before the first li

Thank you so much..My carelessness