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
lorieslaughenhaupt
645 PointsWhy isn't the html style element having an effect?
<meta charset="utf-8">
<title>Lorie Slaughenhaupt | Event Coordinator</title>
<link rel="stylesheet" href="css/normalize.css">
<style>
footer {
color: green;
}
</style>
</head>```
1 Answer
Paul Nicolson
4,799 PointsHi there Lorie,
The problem lies in that there is no footer element on in the document to be styled.
Here is an example of how the page should look in order for your styles to take effect:
<!doctype html>
<head>
<meta charset="utf-8">
<title>Lorie Slaughenhaupt | Event Coordinator</title>
<link rel="stylesheet" href="css/normalize.css">
<style>
footer {
color: green;
}
</style>
</head>
<body>
<footer>
<p>This text will be affected by your styles</p>
</footer>
</body>
</html>```
I hope this helps :)
lorieslaughenhaupt
645 Pointslorieslaughenhaupt
645 PointsSorry, very new to this I should have realized I needed to post the whole project. It's my understanding Markdown is for small amounts of code I better go back to how to post and learn another tool for posting code in questions. Thank you.
Paul Nicolson
4,799 PointsPaul Nicolson
4,799 PointsNo worries, happy to help!