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 trialNenad Jovic
7,883 PointsFinally, using the -webkit- prefix, set the h1 to span across all columns.
What is the answer for this last challenge can't make it to work.
<!DOCTYPE html>
<html>
<head>
<title>Multi-column Layout</title>
<link rel="stylesheet" type="text/css" href="page.css">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="main">
<h1>A Lesson on Multi-Column Layout!</h1>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat.
<p>
<p>
Mauris ac leo id risus commodo auctor at at eros. Proin ultricies ante vel eros egestas vel venenatis arcu consequat. Nam auctor eros vitae nisl viverra sit amet malesuada turpis facilisis. Nullam diam dolor, aliquet vitae pellentesque blandit, varius at arcu. Proin convallis varius sollicitudin.
</p>
<p>
Pellentesque non ultrices nisi. Ut auctor, massa vel hendrerit consectetur, augue mi vestibulum nibh, vitae ullamcorper lectus nisl in felis. Duis magna enim, elementum a sagittis aliquet, mattis quis erat.
</p>
</div>
</body>
</html>
/* Complete the challenge by writing CSS below */
.main {
display:-webkit-flex;
display:-moz-flex;
-webkit-column-count:2;
-moz-column-count:2;
-webkit-column-gap: 2.5em;
-webkit-column-rule: 1px dotted red;
}
h1 {
column-span: ;
}
1 Answer
Ken Alger
Treehouse TeacherNenad;
You need to use -webkit-column-span
as the property. The value to accomplish the task, to set the h1 to span across all columns is the value of all
.
Therefore your CSS for your h1
selector should look like:
h1 {
----
}
Happy coding,
Ken