I made an announcement div and I want it to disappear when I use the mobile version of the webpage because it occupy to much space when resized for the mobile version. How can I hide a div when the size of the webpage becomes bigger?
for example: mobile web surfing
my code is
body {margin:0;}
.icon-bar {
width: 100%;
background-color: #0088B8;
overflow: auto;
}
.icon-bar a {
float: left;
width: 20%;
text-align: center;
padding: 12px 0;
transition: all 0.3s ease;
color: white;
font-size: 36px;
}
.icon-bar a:hover {
background-color: #0073C4;
}
.active {
background-color: #9b0a0a !important;
}
<div class="icon-bar">
<a href="./index.php"><i class="fa fa-home"></i></a>
<a href="./search.php"><i class="fa fa-search"></i></a>
<a href="./news.php"><i class="fa fa-envelope"></i></a>
<a href="./search.php?search_id=unanswered"><i class="fa fa-globe"></i></a>
<a href="#"><i class="fa fa-trash"></i></a>
</div>