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 trialHossam Khalifa
17,200 PointsMy code dosen't work
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Smells Like Bakin' Cupcake Company</title>
<link rel="stylesheet" href="css/normalize.css" type="text/css" media="screen">
<link rel="stylesheet" href="css/grid.css" type="text/css" media="screen">
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen">
<link href='http://fonts.googleapis.com/css?family=Nunito:400,300,700' rel='stylesheet' type='text/css'>
<meta name="viewport" content="width=device-width, initial-scale = 1.0">
<style type="text/css">
/* mwuSlider */
.wmuSlider {
position: relative;
overflow: hidden;
}
.wmuSlider .wmuSliderWrapper {
display: none;
}
.wmuSlider .wmuSliderWrapper article {
position: relative;
text-align: center;
}
.wmuSliderPagination {
z-index: 2;
position: absolute;
left: 20px;
bottom: 10px;
}
.wmuSliderPagination li {
float: left;
margin: 0 5px 0 0;
list-style-type: none;
}
.wmuSliderPagination a {
display: block;
text-indent: -9999px;
width: 10px;
height: 10px;
background: url(../images/sprites.png) no-repeat 0 -80px;
}
.wmuSliderPagination a.wmuActive {
background-position: -10px -80px;
}
</style>
</head>
<body>
<div class="container clearfix">
<div id="logo" class="grid_4">
<object data="img/logo.svg" type="image/svg+xml" class="logo">
<!--[if lte IE 8 ]-->
<img src="img/logo.gif" alt="Smells Like Bakin">
<!--![endif]-->
</object>
</div>
<div id="nav" class="grid_8 omega">
<ul>
<li class="about"><a href="#">About</a></li>
<li class="pricing"><a href="#">Cupcakes & Prices</a></li>
<li class="locations"><a href="#">Locations</a></li>
<li class="contact"><a href="#">Contact Us</a></li>
</ul>
</div>
<!-- Intro Images -->
<div id="intro-slider" class="wmuSlider grid_12 omega">
<div class="wmuSliderWrapper">
<article id="intro-cupcakes" class="grid_12 omega">
<div class="intro grid_9">
<h1 class="fittext">Opposites really do attract, especially in our kitchen! We combine unexpected flavors that melt together to create ironically delicious desserts. </h1>
<p><a href="pricing.html" class="btn">Browse Our Cupcakes</a></p>
</div>
<div class="intro-img grid_3 omega">
<object data="img/you-bake-me-blush.svg" type="image/svg+xml">
<a href="you-bake-me-blush.svg">
<!--[if lte IE 8 ]-->
<img src="img/you-bake-me-blush.gif" alt="You Bake Me Blush">
<!--![endif]-->
</a>
</object>
</div>
</article>
<article id="intro-locations" class="grid_12 omega">
<div class="intro grid_8">
<h1 class="fittext">We're kicking taste buds in to high gear from the west to the east coast with our featured avacodo chocolate cupcake.</h1>
<p><a href="locations.html" class="btn">View Our Locations</a></p>
</div>
<div class="intro-img grid_4 omega">
<object data="img/love-at-first-bite.svg" type="image/svg+xml">
<a href="love-at-first-bite.svg">
<!--[if lte IE 8 ]-->
<img src="img/love-at-first-bite.gif" alt="Love at First Bite">
<!--![endif]-->
</a>
</object>
</div>
</article>
</div>
</div>
<!-- End Intro Images -->
<div id="featured-cupcake" class="grid_7">
<h2>Cupcake of the Week</h2>
<p>This week’s featured cupcake is the <a href="#">Avocado Chocolate cupcake</a>. It’s flavors will kick your taste buds into fiesta mode!</p>
<div id="featured-video">
<iframe src="http://player.vimeo.com/video/50610288?title=0&byline=0&portrait=0" width="400" height="275" frameborder="0"></iframe>
</div>
</div>
<div id="new-cupcakes" class="grid_5 omega">
<h2>Fresh Out the Oven</h2>
<p>Our newest cupcakes are <a href="#">Bacon Me Crazy</a> and <a href="#">Jalapeño So Spicy</a>. </p>
<div data-picture data-alt="Bacon Me Crazy">
<div data-src="external/imgs/bacon-small.jpg"></div>
<div data-src="external/imgs/bacon-medium.jpg" data-media="(min-width: 400px)"></div>
<div data-src="external/imgs/bacon-large.jpg" data-media="(min-width: 800px)"></div>
<div data-src="external/imgs/bacon-extralarge.jpg" data-media="(min-width: 1000px)"></div>
<!-- Fallback content for non-JS browsers. Same img src as the initial, unqualified source element. -->
<noscript>
<img src="external/imgs/bacon-small.jpg" alt="Bacon Me Crazy">
</noscript>
</div>
<div data-picture data-alt="Spicy Lime">
<div data-src="external/imgs/lime-small.jpg"></div>
<div data-src="external/imgs/lime-medium.jpg" data-media="(min-width: 400px)"></div>
<div data-src="external/imgs/lime-large.jpg" data-media="(min-width: 800px)"></div>
<div data-src="external/imgs/lime-extralarge.jpg" data-media="(min-width: 1000px)"></div>
<!-- Fallback content for non-JS browsers. Same img src as the initial, unqualified source element. -->
<noscript>
<img src="external/imgs/lime-small.jpg" alt="Spicy Lime">
</noscript>
</div>
</div>
<div id="about" class="grid_7">
<h2>Inside the Kitchen</h2>
<p>Smells Like Bakin’ started out in the garage of the husband wife duo Allison & Joseph. Allison is the baker, and Joseph found a way for them to make a business out of her tasty treats. Flash forward to today and they have a successful store front, catering business and cupcake truck. </p>
<p><a href="#" class="btn-small">Read More</a></p>
</div>
<div class="grid_5 omega">
<h2>Get Bakin’ with Us</h2>
<div id="contact">
<p>Call us: <span>1-800-CUP-CAKE</span><br>
Email us: <a href="#">bakeon@smellslikebakin.com</a></p>
</div>
<p>We announce all of our new flavors first through Facebook & Twitter, and even take requests!</p>
<object data="img/facebook.svg" type="image/svg+xml">
<a href="facebook.svg">
<!--[if lte IE 8 ]-->
<img src="img/facebook.gif" alt="Facebook">
<!--![endif]-->
</a>
</object>
<object data="img/twitter.svg" type="image/svg+xml">
<!--[if lte IE 8 ]-->
<img src="img/twitter.gif" alt="Twitter">
<!--![endif]-->
</object>
</div>
<div id="copyright" class="grid_12">
<p>© 2012 Smells Like Bakin' Cupcake Company. All Rights Reserved.</p>
</div>
</div>
<script src="js/jquery.js"></script>
<script type="text/javascript"src="js/jquery.wmuSlider.min.js"></script>
<script src="external/matchmedia.js"></script>
<script src="picturefill.js"></script>
<script src="jquery.fitvids.js"></script>
<script src="jquery.fittext.js"></script>
<script>
// Target your .container, .wrapper, .post, etc.
$("#featured-video").fitVids();
$(".fittext").fitText(2.2);
var options = {navigationControl:false,animation:"slide"};
$(".wmuSlider").wmuSlider(options);
</script>
</body>
</html>
My code dos not show the same result as in the video
1 Answer
Caleb King
32,777 PointsHossam Khalifa yea, you are going to need to be more specific. What part of your code is not working? Is it a html, css, browser issue? What are you trying to accomplish.
Keith Kelly
21,326 PointsKeith Kelly
21,326 PointsCould you provide some more context as to what is not working or looking correctly?