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 trialIsis Phillips
17,067 PointsHaving issues with navigation menu collapsing as it should. My code is posted below...please help.
<html> <head> <Title>TARC Metro United Way Masquerade Ball</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="css/bootstrap.min.css" rel="stylesheet" media="screen"> <link href="css/bootstrap.them.css" rel="stylesheet" media="screen"> <link href="css/my-styles.css" rel="stylesheet" media="screen">
</head> <body> <!--Top navigation links--> <div class="navbar navbar-inverse navbar-fixed-top"> <div class="container">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Masquerade</a>
<div class="callapse navbar-callapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="#" >Ticket Information</a></li>
<li><a href="#">Location Details</a></li>
<li><a href="#">Attire ~ 1920's Formal</a></li>
<li><a href="#">Metro United Way Committee</a></li>
</ul>
</div>
</div>
</div>
<div class="container">
<div class="jumbotron">
<h1>Masquerade<h1>
</div>
</div>
<!--image scrolling banner-->
<div>
<img src="img/banner pic 1.jpg" alt=""/>
<img src="img/banner pic 2.jpg" alt=""/>
<img src="img/banner pic 3.jpg" alt=""/>
<img src="img/banner pic 4.jpg" alt=""/>
</div>
<div>
<h1>Fundraising for Community Growth!</h1>
<p id=>Join us for a magical night of dancing and glamour! All while supporting a great cause.<br>
Set in the 1920's, the days of jazz and glitter, experience tasty eats, beautiful decore, and fancy outfits.<br></p>
<p>Please Save the date for September 30, 2017 for the experience of your life.<br></p>
<p>Location and ticket cost will be listed at a later date. In the mean time, please review the links below for more information on the 1920's</p>
</div>
</div>
<!--Partnership links--> <footer> <div> <ul> <li><a href="https://metrounitedway.org/servlet/eAndar.article/342/Metro-United-Way-Online">Metro United Way</a></li> <li><a href="https://www.ridetarc.org/">TARC</a></li> <li><a href="http://www.firstgroupplc.com/">First Transit</a></li> </ul> </div> <div> <p>© 2017 TARC Metro United Way Committee</p> </div> </footer> <script src="js/bootstrap.min.js"></script> </body>
</html>
1 Answer
Glenré Charl Labuschagné
23,204 PointsHi Isis,
Have you downloaded Bootstrap and are you linking to the files correctly? If not you need to use a cdn:
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
See the bootsrtap documentation
Also be aware of your spelling throughout: your css/bootstrap.them.css --> "them" should be "theme"
Lastly bootstrap.js plugins depend on jQuery (this means jQuery must be included before the plugin files) Read more here
<script
src="https://code.jquery.com/jquery-2.2.4.min.js"
integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44="
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>