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 trialTommy Gebru
30,164 PointsCreating a Website Structure
I am not understanding whats going on? I have been focused for the past 40 minutes and need to ask for help where does my code need tweaking?
Tommy Gebru
30,164 PointsNot sure how to place a screenshot as a comment nor can i highlight copy +paste the code
Adam Sackfield
Courses Plus Student 19,663 PointsWhy can you not copy and paste the code? Could you type in it then otherwise I don't know where you are going wrong. What is the question you are on? :)
Jeff Busch
19,287 PointsHi Teame,
If you look to the bottom right of the text box you will see something that says Markdown Cheetsheet. If you don't understand that maybe this will make sense: How to display code at Treehouse
Jeff
Tommy Gebru
30,164 Points// Okay so I used the shortcuts and now copy +paste works! My question now is task 1 and how to complete it.
html
<!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">
</head>
<body>
<div id="featured-cupcake">
<h2>Cupcake of the Week</h2>
<img src="img/featured-cupcake.jpg">
</div>
</body>
</html>
2 Answers
Adam Sackfield
Courses Plus Student 19,663 PointsExcellent, right I edited your post to add the correct MarkDown if you click edit now you can see how I did it. So the question says to add a DIV around the featured cupcake element and add the CLASSES container and clearfix. So the code below is how it is done.
<!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">
</head>
<body>
<div class="container clearfix"> // This line opens the div and adds the classes
<div id="featured-cupcake">
<h2>Cupcake of the Week</h2>
<img src="img/featured-cupcake.jpg">
</div>
</div> // This line closes the div
</body>
</html>
Does this clarify it for you?
Tommy Gebru
30,164 PointsHow do post my code to the forum the way you did (its presentation and colors)
Adam Sackfield
Courses Plus Student 19,663 PointsIf you click edit on the answer you placed below I have edited to add correct formatting. But basically it's a blank line then () followed by the language ie (
html) then a new line add your code then a new line (```) That's it :) Teame Gebru
Tommy Gebru
30,164 PointsEdited by @Adam Sackfield
<!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">
</head>
<body>
<div id="featured-cupcake">
<h2>Cupcake of the Week</h2>
<img src="img/featured-cupcake.jpg">
</div>
</body>
</html>
Adam Sackfield
Courses Plus Student 19,663 PointsAdam Sackfield
Courses Plus Student 19,663 PointsCould you share your code, as without seeing it I am unable to posit why it is not doing as expected. You can add code to the forum using MarkDown link below comment box in bold :)