I am using Bootstrap 4 for my website.
But my columns are going under each other and not next to each other. Here is a screenshot of my problem
I want to have 4 columns next to each other and the other ones to go under that row.
Here is my HTML code:
<section class="menu">
<div class="container">
<div class="row">
<div class="menu-slider">
<div>
<div class="text-center">
<h1 class="text-center">Dranken</h1>
<img src="<?php echo get_template_directory_uri(); ?>/assets/images/introduction-image.png" class="menu-img-seperator">
<?php
$args = array(
'post_type' => 'menu',
'categories'=> 'frisdranken-per-glas');
$my_query = new WP_Query( $args );
?> <div class="col-md-4"><h3>Frisdranken per glas</h3> <?php
if( $my_query->have_posts() ) {
while ($my_query->have_posts()) : $my_query->the_post(); ?>
<span style="font-weight: bold; font-style: cursive;"><?php the_title(); ?></span> - €<?php the_field('menu_price'); ?>,-<br>
<?php
endwhile;
}
?> </div> <?php
wp_reset_query();
?>
</div>
</div>
</div>
</div>
</section>