Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS CSS - Beyond the Basics Understanding Flexbox and Multi-Column Layout Multi-Column Layout Challenge

Bill Klinkow
Bill Klinkow
2,440 Points

It's not responding to my answer, though it seems to be correct

It says I forgot to add column-rule-color, but it is there.

style.css
/* Complete the challenge by writing CSS below */

.main {
  -webkit-column-count: 2;
  -webkit-column-gap: 2.5em;
  -webkit-column-rule-width: 1px;
  -webkit-column-rule-style: dotted;
  -webkit-column-rule-color: red;
}

h1 {

}
index.html
<!DOCTYPE html>
<html>
<head>
    <title>Multi-column Layout</title>
    <link rel="stylesheet" href="page.css">
    <link rel="stylesheet" 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>

1 Answer

Bogdan Cabaj
Bogdan Cabaj
16,348 Points

It works with a shorthand.

  -webkit-column-rule: 1px dotted red;