0

I am using Drupal Bootstrap and to get the correct positioning I am using bootstrap rows and columns classes.

How do I render a bootstrap row class on every let's say 3 view rows (bootstrap columns)? The structure must be like this

<div class="row">
  <div class="views-row col-md-4"></div>
  <div class="views-row col-md-4"></div>
  <div class="views-row col-md-4"></div>
</div>
<div class="row">
  <div class="views-row col-md-4"></div>
  <div class="views-row col-md-4"></div>
  <div class="views-row col-md-4"></div>
</div>

3 Answers 3

1

Use views bootstrap module, in views format style chose Bootstrap Grid it will solve your problem.

-1

You add class in Unformatted list formate .enter image description here

and your class show like this

enter image description here

-1

enter image description here

You can use this. Set number of columns 3 and apply custom row and column class

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.