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 trialAditya Shah
1,988 PointsI keep setting the size of my h1 to 1.75em, and it keeps saying that I'm not. Please help. I need to finish this soon.
I feel like this has to be a bug.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Aditya Shah | Composer</title>
<link rel="stylesheet" href="CSS/normalize.css">
<link href='https://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400,700,600italic,600,800' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="CSS/main.css">
</head>
<body>
<header>
<a href="index.html" id="logo">
<h1>Aditya Shah</h1>
<h2>Composer</h2>
</a>
<nav>
<ul>
<li> <a href="index.html" class="selected">Portfolio</a></li>
<li><a href="about.html"> About</a></li>
<li><a href="contact.html">Contact </a></li>
</ul>
</nav>
</header>
<div id="wrapper">
<section>
<ul>
<li>
<a href="Images/numbers-01.jpg">
<img src="Images/numbers-01.jpg" alt="">
<p>Experimentation with colors and texture</p>
</a>
</li>
<li>
<a href="Images/numbers-02.jpg">
<img src="Images/numbers-02.jpg" alt="">
<p>Playing with blending modes</p>
</a>
</li>
<li>
<a href="Images/numbers-06.jpg">
<img src="Images/numbers-06.jpg" alt="">
<p>Styles</p>
</a>
</li>
<li>
<a href="Images/numbers-09.jpg">
<img src="Images/numbers-09.jpg" alt="">
<p>cool photoshop drips brushes</p>
</a>
</li>
<li>
<a href="Images/numbers-12.jpg">
<img src="Images/numbers-12.jpg" alt="">
<p>Shapes using repetition</p>
</a>
</li>
</ul>
</section>
<footer>
<p>© 2015 Aditya Shah.</p>
</footer>
</div>
</body>
</html>
a {
text-decoration: none;
}
body {
font-family: 'Open Sans', sans-serif;
}
#wrapper {
max-width: 940px;
margin: 0 auto;
padding: 0 5%;
}
#logo {
text-align: center;
margin: 0;
}
h1 {
font-family: 'Changa One', sans-serif;
font-size: 1.75em;
font-weight: normal;
}
h2 {
font-size: 0.75em;
margin: -5px 0 0;
font-weight: normal;
}
a {
color: #6ab47b;
}
header {
background: #6ab47b;
border-color: #599a68;
}
h1, h2 {
color: #fff;
font-size: 1.75em;
}
nav a, nav a:visited {
background: #fff;
}
nav a.selected, nav a:hover {
color: #32673f;
}
/* Site Body*/
body {
background-color: #fff;
color: #999;
}
/**/
/*Navigation*/
/**/
nav {
text-align:center;
padding: 10px 0;
margin: 20px 0 0;
}
footer {
font-size: 0.75em;
text-align:center;
padding-top:50px;
color: #ccc;
}
1 Answer
jcorum
71,830 PointsThe problem is that you set the font-size twice.
First for h1 alone:
h1 {
font-family: 'Changa One', sans-serif;
font-size: 1.75em;
font-weight: normal;
}
And then for h1 and h2:
h1, h2 {
color: #fff;
font-size: 1.75em;
}
If you remove the second one your css will pass.