I am looking to create a layout with 4 columns like the screenshot below, each with a margin around it. The columns are set to col-md-6 with a margin of .5%. However, this margin is causing the columns to break to the next line. I have tried adjusting the flex property from:
flex: 0 0 0 50%;
To:
flex: 0 0 0 49%;
To account for the added margin. Unfortunately, this solution does not work in Internet Explorer.
.services_content,
.services_image {
border-radius: 20px;
margin: .5%;
flex: 0 0 49%;
}
<div class="row">
<div class="order-sm-0 order-md-1 col-md-6 services_image_1 services_image" style="background: url('<?php echo $servicesImgLink_1;?>">
<h2 class="service_img_heading">
<?php the_field('services_heading_1'); ?>
</h2>
</div>
<div id="services_content_1" class=".order-sm-1 .order-md-0 col-md-6 services_content_1 services_content">
<p>
<?php the_content(); ?>
</p>
</div>
</div>
What would be the most effective method to achieve a full-screen look with a slight margin around these 4 columns?