@media (max-width: 767px) { .item { width: 100%; height: 120px; margin: 0 } } .item .forum-description { white-space: normal; word-wrap: break-word; } .item .picture img { width: 120px; height: 120px; } '); ?> <div class="forum-index"> <div class="forum-all"> <?php Masonry::begin(['options' => ['id' => 'forums'], 'pagination' => $pages]); ?> <?php echo $this->render('_forum', ['forums' => $forums, 'pages' => $pages]); ?> <?php Masonry::end(); ?> </div> </div>