> For the complete documentation index, see [llms.txt](https://javascriptuse.gitbook.io/advanced/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://javascriptuse.gitbook.io/advanced/javascript/how-can-i-create-a-carousel-slick-with-multiple-rows-ok.md).

# How can I create a carousel slick with multiple rows? (ok)

{% file src="/files/-LuZkqU0AY5p72LbCjxu" %}

![](/files/-LuZl27kbKr6hJxohYSY)

```
<!DOCTYPE html>
<html>

<head>
  <title>Slick Playground</title>
  <meta charset="UTF-8">
  <link rel="stylesheet" type="text/css" href="./slick/slick.css">
  <link rel="stylesheet" type="text/css" href="./slick/slick-theme.css">
  <style type="text/css">
  html, body {
    margin: 0;
    padding: 0;
  }
  * {
    box-sizing: border-box;
  }
  .slider {
    width: 50%;
    margin: 100px auto;
  }
  .slick-slide {
    margin: 0px;
  }
  .slick-slide img {
    width: 100%;
  }
  .slick-prev:before,
  .slick-next:before {
    color: black;
  }
  .slick-slide {
    transition: all ease-in-out .3s;
    opacity: .2;
  }
  .slick-active {
    opacity: .5;
  }
  .slick-current {
    opacity: 1;
  }
  .grandchild {
    float: left;
    padding: 15px;
  }
  .clearboth:after {
    content: "";
    display: table;
    clear: both;
  }
  </style>
</head>

<body>
  <div class="slider">
    <div class="grandchild clearboth">
      <img src="http://placehold.it/350x100?text=1">
    </div>
    <div class="grandchild clearboth">
      <img src="http://placehold.it/350x100?text=2">
    </div>
    <div class="grandchild clearboth">
      <img src="http://placehold.it/350x100?text=3">
    </div>
    <div class="grandchild clearboth">
      <img src="http://placehold.it/350x100?text=4">
    </div>
    <div class="grandchild clearboth">
      <img src="http://placehold.it/350x100?text=5">
    </div>
    <div class="grandchild clearboth">
      <img src="http://placehold.it/350x100?text=6">
    </div>
    <div class="grandchild clearboth">
      <img src="http://placehold.it/350x100?text=7">
    </div>
    <div class="grandchild clearboth">
      <img src="http://placehold.it/350x100?text=8">
    </div>
    <div class="grandchild clearboth">
      <img src="http://placehold.it/350x100?text=9">
    </div>
    <div class="grandchild clearboth">
      <img src="http://placehold.it/350x100?text=10">
    </div>
  </div>
  <script src="https://code.jquery.com/jquery-2.2.0.min.js" type="text/javascript"></script>
  <script src="./slick/slick.js" type="text/javascript" charset="utf-8"></script>
  <script type="text/javascript">
    $(document).ready(function() {
      $('.slider').slick({
          dots: false,
          slidesPerRow: 4,
          rows: 2
      });
    });
  </script>
</body>

</html>
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://javascriptuse.gitbook.io/advanced/javascript/how-can-i-create-a-carousel-slick-with-multiple-rows-ok.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
