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 trialMarcus Graham
UX Design Techdegree Graduate 35,971 Points<div class> troubles
I'm having trouble making a <div class="grid_5 omega"> work. I've added my code below...any help would be great.
<body> <div class="container clearfix"> <div class="grid_5 omega"> <div id="featured-cupcake"> <h2>Cupcake of the Week</h2> <img src="img/featured-cupcake.jpg"> </div> </body> </html>
Marcus Graham
UX Design Techdegree Graduate 35,971 PointsThanks Adam, I'll look into it.
Marcus
Adam Sackfield
Courses Plus Student 19,663 PointsYes that would be great codepen.io is a good site for showing your code to others. Happy to help any way I can.
11 Answers
Adam Sackfield
Courses Plus Student 19,663 PointsFrom the gist you linked I can see that there is no link tag for the gird.css file which should look like this
<link rel="stylesheet" href="css/grid.css" type="text/css" media="screen">
and that file should be in the same folder as the normalize.css file.
This should fix your issue. Give me a shout when you have tried please.
Adam Sackfield
Courses Plus Student 19,663 PointsHere is a working preview on codepen but the grid styles have not been linked merely placed in the css part. But it shows them working pen
Wayne Priestley
19,579 PointsYou have 3 opening div's but only one closing div.
Wayne Priestley
19,579 PointsCant see your code Marcus
Marcus Graham
UX Design Techdegree Graduate 35,971 PointsSorry Wayne, here it is:
<body>
<div class="container clearfix">
<div class="grid_5 omega">
<div id="featured-cupcake">
<h2>Cupcake of the Week</h2>
<img src="img/featured-cupcake.jpg">
</div>
</body>
</html>
I can't seem to make this work <div class="grid_5 omega">
Marcus Graham
UX Design Techdegree Graduate 35,971 PointsI can't seem to post the code?
Wayne Priestley
19,579 Pointsif you do this,
```html
your code goes in here
you also need to add 3 back ticks after your code, take a look at the Markdown cheat sheet below
Marcus Graham
UX Design Techdegree Graduate 35,971 Points<body>
<div class="container clearfix">
<div class="grid_5 omega">
<div id="featured-cupcake">
<h2>Cupcake of the Week</h2>
<img src="img/featured-cupcake.jpg">
</div>
</body>
</html>
I'm having trouble with <div class="grid-5 omega">
Adam Sackfield
Courses Plus Student 19,663 PointsYou will need to be more specific then "I'm having trouble making a work", what exactly is not working. If it the classes? Have you included the CSS file?
Thanks
Marcus Graham
UX Design Techdegree Graduate 35,971 PointsI'm having trouble grid_5 omega...it doesn't seem to be working. Thanks for you patience I'm all new to this.
Adam Sackfield
Courses Plus Student 19,663 PointsThanks if you can head over to codepen and create a new pen (for free) save it and give me the link in here I will sort it for you and explain any errors or what the issue(s) may be. Don't let it get you down. :)
Marcus Graham
UX Design Techdegree Graduate 35,971 PointsHi Adam, here's the link https://gist.github.com/anonymous/8373772 thanks for you help...much appreciated.
Marcus Graham
UX Design Techdegree Graduate 35,971 PointsI've tried it with 3 closing divs, but it still didn't work...I'm a bit miffed.
Marcus Graham
UX Design Techdegree Graduate 35,971 PointsIt worked!!! Thank you.
Adam Sackfield
Courses Plus Student 19,663 PointsIf you can click on the best answer that led you to the solution and up vote it will mark it as solved.
Glad you sorted.
Marcus Graham
UX Design Techdegree Graduate 35,971 PointsNo worries, cheers.
Adam Sackfield
Courses Plus Student 19,663 PointsAdam Sackfield
Courses Plus Student 19,663 PointsIf having trouble with the MARKDOWN use codepen.io and put your HTML, CSS in to the specified boxes click save then share and paste the link in here.
Thanks