My goal is to display a picture below the navbar when the window size becomes small or in mobile mode, followed by my name and other details. However, I am having trouble understanding how to implement this using media queries.
DESKTOP PREVIEW
https://i.sstatic.net/czMYy.jpg
MOBILE PREVIEW
https://i.sstatic.net/z8OPV.jpg
@media (min-width: 700px) {
.col-md-8 {
margin-top: 5px !important;
float: left;
display: block;
}
}
<div id="s">
<div class="row">
<div class="col-md-8">
<h1>AYAN ADHIKARY</h1>
<h4> WELCOME TO MY PAGE</h4>
<p> <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="89cec4bbb9c5bdb1c9eee4e8e0e5a7eae6e4">[email protected]</a> <br> Ph No.- 800001710 <br> INDIA
</p>
</div>
<div class="col-md-4">
<img src="1.png">
</div>
</div>
</div>