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
tuukka uosukainen
22,107 PointsFoundation top-bar won't work?
I'm trying to get into Foundation framework and I was following Guil along the video with my own index.html file. I think I did what Guil did but somehow the black top-bar won't show up.
What can cause this?
Here's my index file:
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Foundation | Welcome</title>
<link rel="stylesheet" href="css/foundation.css" />
<link rel="stylesheet" href="css/normalize.css" />
<script src="js/vendor/modernizr.js"></script>
</head>
<body>
<!-- Top Bar -->
<nav class="top-bar">
<h1>
<a href="#">Tuukka Uosukainen Brand</a>
</h1>
<ul>
<li><a href="#">Illustration</a></li>
<li><a href="#">Photography</a></li>
<li><a href="#">Info</a></li>
</ul>
</nav>
<!-- End Top Bar -->
<script src="js/vendor/jquery.js"></script>
<script src="js/foundation.min.js"></script>
<script>
$(document).foundation();
</script>
</body>
</html>
2 Answers
Aurelian Spodarec
7,369 PointsHI,
Your code should look like :
<h1>
<a href="#">Tuukka Uosukainen Brand</a>
</h1>
<nav class="top-bar">
<ul>
<li><a href="#">Illustration</a></li>
<li><a href="#">Photography</a></li>
<li><a href="#">Info</a></li>
</ul>
</nav>
You are putting header and paragraph inside it that will break the code because its invalid or something like that I guess , im not exactly sure.
But this code should work.
tuukka uosukainen
22,107 PointsHey Aurelian,
Thanks for your input on this problem.
I figured it out when I was washing dishes :) I had downloaded the simple version of Foundation. So I downloaded full version and it worked like a charm.
Aurelian Spodarec
7,369 PointsAurelian Spodarec
7,369 PointsI hope this is what your up to . You could post the video too from where you got this.