I am facing a challenge with displaying two contents side by side on a full page and stacking them vertically when the screen size is small (mobile). I have managed to achieve the side by side display on a full page, but they stack on top of each other on small screens.
In my master.blade file, I have included both contents using:
@yield:
<footer>
<div class="container">
<hr>
<div class="row">
<div class="col-md-12">
<p class="text-center" style="font-size: 20px;">MyHero © {{ date('Y') }} </p>
</div>
@yield('map') // content 1
@yield('Contact') // content 2
</div>
</div>
<br><br><br>
</footer>
For the section ('map'), my CSS is as follows:
<div class="map" style="height:300px;width: 500px;display: block; float: left;">
For the section ('contact'), my CSS is:
@section('Contact')
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<div class="cont" style="height:300px;width: 500px; display: block; float: right;">