Can anyone help me with aligning two divs side by side using CSS? I attempted a few methods on my own but seem to be stuck. Any suggestions would be greatly appreciated!
CSS:
.posts{
display: flex;
flex-direction: row;
}
.posts .col-md-6{
padding-top: 14px;
display: flex;
flex-direction: column;
}
.posts .searchandlists{
padding-top: 14px;
display: flex;
flex-direction: column;
/*float: right;*/
/*padding-bottom: 14px;*/
}
.list-group{
max-height: 300px;
margin-bottom: 10px;
overflow:scroll;
-webkit-overflow-scrolling: touch;
}
HTML:
@extends('layouts.master')
@section('content')
<section class="row posts">
<div class="col-md-6 col-md-3-offset></div>
<div class="container searchandlists"></div>
</section>