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 trialTayler Frausto
Courses Plus Student 282 PointsGrid.css not working!
I have downloaded the grid.css folder and plugged it in in the exact spot as where Nick said, it looks like this... <link rel="stylesheets" href="/Users/taylerfrausto/Downloads/grid.css" type="text/css" media="screen">
and i dont know what is wrong, the website isn't moving at all. Im using sublime 2.0.2.
5 Answers
Carman A
7,672 PointsTry to put your code in between these 3 of these on each side `
Tayler Frausto
Courses Plus Student 282 PointsIn between what?
Carman A
7,672 PointsOn pc the button above the tab sign the same one with the tilda sorry i'm not sure what it is called.
Ryan Lockhart
Courses Plus Student 1,685 PointsHi,
I will try to help as much as I can, not exactly clear on what / where the problem is occurring. First, make sure your code in your index.html file is linked properly.
If the problem is happening after you have uploaded your files to your domain server, make sure your grid.css file is executing on the page.
can you post any of your code so we can see if there was a slight mistake?
Lets fix this problem Tayler!
-Ryan
Tayler Frausto
Courses Plus Student 282 PointsThis is my whole code,I changed the words just a lil so i dont make a bakery website, i make a website about me.
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Smells Like Bakin' Cupcake Company</title> <link rel="stylesheets" href="/Users/taylerfrausto/Downloads/normalize.css.html" type="text/css" media="screen"> <link rel="stylesheets" href="/Users/taylerfrausto/Downloads/grid.css" type="text/css" media="screen"> <link rel="stylesheets" href="/Users/taylerfrausto/Downloads/1000px-12col-65w-20gut.png" type="text/css" media="screen"> </head> <body> <div class="container clearfix"> <div class="grid_4"> <img src="/Users/taylerfrausto/Pictures/Scan 1.jpeg" alt="Smells Like Bakin"> </div> <div class="grid_8 omega"> <ul class="nav"> <li><a href="#">About</a></li> <li><a href="#">My family & Me</a></li> <li><a href="#">Locations Ive Been To</a></li> <li class="last"><a href=#>Contact Us</a></li> </ul> </div> <div id="intro"> <h1>Opposites really do attract...lol </h1> <p><a href="#" class="btn">All Of Us At Hawaii</a></p> </div>
<img src="/Users/taylerfrausto/Pictures/ry=400.jpeg" alt="Mi Familia">
<div id="featured-cupcake">
<h2>My sis and I met Cris Angel</h2>
<p>We saw him at caesars in Las Vegas!!!</p>
<img src="/Users/taylerfrausto/Pictures/Unknown1234.jpeg" alt="Me and my sister"
</div id="new-cupcakes">
<h2>Fresh Out The Oven</h2>
<p>My New Dog</p>
<img src="/Users/taylerfrausto/Pictures/Kiki/340889_113686168731891_100002715254627_72142_6467865_o.jpg" alt="Kiki Bears">
<img src="/Users/taylerfrausto/Pictures/My Birthday/jackass_logo.jpg" alt="Jackass"
</div>
<h2>Favorite Movie</h2> <p>Jackass 1&2&3</p> <p><a href="#" class="btn-small">about the movie</a></p>
<h2>Contact us</h2>
<div id="contact"> <p>Call us:<span>1-714-123-4567</span><br> Email us:<a href="#">tghi@gmail.com</a></p> </div>
<p>Where We Live</p> <Img src="/Library/Application Support/Apple/iChat Icons/Planets/Earth (Americas).gif" alt="Earth"
<div id="copyright"> <p>© 2013 Tayler Frausto</p> </div>
</div> </body> </html>
Carman A
7,672 PointsI can't see your link tag but this is what your it should look like <link rel="stylesheet" href="grid.css" media="screen">
Carman A
7,672 PointsPlace it in your head tag.
Tayler Frausto
Courses Plus Student 282 Points<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Smells Like Bakin' Cupcake Company</title> <link rel="stylesheets" href="/Users/taylerfrausto/Downloads/normalize.css.html" type="text/css" media="screen"> <link rel="stylesheets" href="/Users/taylerfrausto/Downloads/grid.css" type="text/css" media="screen"> <link rel="stylesheets" href="/Users/taylerfrausto/Downloads/1000px-12col-65w-20gut.png" type="text/css" media="screen"> </head>
Tayler Frausto
Courses Plus Student 282 Pointssorry... <link rel="stylesheets" href="/Users/taylerfrausto/Downloads/grid.css" type="text/css" media="screen">
that is exactly what i have for the grid.css plug in, and its in the head tag and its right after the normalize.css plug in. the normalize one worked and i just copied the normalize plug in and chafed everything that needed to be changed like the location of the document???
Carman A
7,672 PointsHave you added position's to your classes yet? for example <div class="grid_5">..content in here..</div>
Tayler Frausto
Courses Plus Student 282 Pointsyep...
<div class="container clearfix">
<div class="grid_4">
and
<div class="grid_8 omega">
Carman A
7,672 PointsPost all of your code on codepen
Tayler Frausto
Courses Plus Student 282 PointsTayler Frausto
Courses Plus Student 282 Pointssorry... <p data-height="268" data-theme-id="0" data-slug-hash="xAeqE" data-user="MrTayer97" data-default-tab="result" class='codepen'>See the Pen <a href='http://codepen.io/MrTayer97/pen/xAeqE'>xAeqE</a> by Tayler Frausto (<a href='http://codepen.io/MrTayer97'>@MrTayer97</a>) on <a href='http://codepen.io'>CodePen</a></p> <script async src="http://codepen.io/assets/embed/ei.js"></script>
Tayler Frausto
Courses Plus Student 282 PointsIm sorry, but im new at all of this... but can u just go to codepen and look up treehouse.1234 and thats my code...sorry again
Carman A
7,672 PointsIt's ok i just have to delete some stuff from the url. And everyone has problems when they are starting.
Tayler Frausto
Courses Plus Student 282 Points<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Smells Like Bakin' Cupcake Company</title> <link rel="stylesheets" href="/Users/taylerfrausto/Downloads/normalize.css.html" type="text/css" media="screen"> <link rel="stylesheets" href="/Users/taylerfrausto/Downloads/grid.css" type="text/css" media="screen"> <link rel="stylesheets" href="/Users/taylerfrausto/Downloads/1000px-12col-65w-20gut.png" type="text/css" media="screen"> </head> <body> <div class="container clearfix"> <div class="grid_4"> <img src="/Users/taylerfrausto/Pictures/Scan 1.jpeg" alt="Smells Like Bakin"> </div> <div class="grid_8 omega"> <ul class="nav"> <li><a href="#">About</a></li> <li><a href="#">My family & Me</a></li> <li><a href="#">Locations Ive Been To</a></li> <li class="last"><a href=#>Contact Us</a></li> </ul> </div> <div id="intro"> <h1>Opposites really do attract...lol </h1> <p><a href="#" class="btn">All Of Us At Hawaii</a></p> </div>
<img src="/Users/taylerfrausto/Pictures/ry=400.jpeg" alt="Mi Familia">
<div id="featured-cupcake">
<h2>My sis and I met Cris Angel</h2>
<p>We saw him at caesars in Las Vegas!!!</p>
<img src="/Users/taylerfrausto/Pictures/Unknown1234.jpeg" alt="Me and my sister"
</div id="new-cupcakes">
<h2>Fresh Out The Oven</h2>
<p>My New Dog</p>
<img src="/Users/taylerfrausto/Pictures/Kiki/340889_113686168731891_100002715254627_72142_6467865_o.jpg" alt="Kiki Bears">
<img src="/Users/taylerfrausto/Pictures/My Birthday/jackass_logo.jpg" alt="Jackass"
</div>
<h2>Favorite Movie</h2> <p>Jackass 1&2&3</p> <p><a href="#" class="btn-small">about the movie</a></p>
<h2>Contact us</h2>
<div id="contact"> <p>Call us:<span>1-714-123-4567</span><br> Email us:<a href="#">tghi@gmail.com</a></p> </div>
<p>Where We Live</p> <Img src="/Library/Application Support/Apple/iChat Icons/Planets/Earth (Americas).gif" alt="Earth"
<div id="copyright"> <p>© 2013 Tayler Frausto</p> </div>
</div> </body> </html>
Carman A
7,672 PointsOkay your first problem is your link tag it's supposed to be <link rel="stylesheet" href="/Users/taylerfrausto/Downloads/grid.css" type="text/css" media="screen">
your problem is you have rel="stylesheets"
and it's supposed to be rel="stylesheet"
. Second it would also help if it was in the same folder as index.html
so it could look like <link rel="stylesheet" href="grid.css" type="text/css" media="screen">
Tayler Frausto
Courses Plus Student 282 Pointsit worked thank you very much!!!
Carman A
7,672 PointsNo Problem :)
Heath Johnson
875 PointsCarman, I am having the same issue and followed your instructions to no avail. Here is what I have.
<!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="Web/css/normalize.css" type="text/css" media="screen"> <link rel="stylesheet" href="Web/css/grid.css" type="text/css" media="screen"> </head>
Heath Johnson
875 Points<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Smells Like Bakin' Cupcake Company</title> <link rel="stylesheet" href="Web/css/normalize.css" type="text/css" media="screen"> <link rel="stylesheet" href="Web/css/grid.css" type="text/css" media="screen"> </head>
Carman A
7,672 PointsTry putting your code in codepen if markdown is not working :).