I want to show a specific div only on mobile that can't me seen on desktop and vice versa. This code should work but I can't seem to get this code to work using weebly.com
<style>
@media all and (max-width: 959px) {
.content .one{display:block;}
.content .two{display:none;}
.content .three{display:none;}
}
@media all and (max-width: 720px) {
.content .one{display:none;}
.content .two{display:block;}
.content .three{display:none;}
}
@media all and (max-width: 479px) {
.content .one{display:none;}
.content .two{display:none;}
.content .three{display:block;}
}
</style>
<div class="content">
<div class="one">this is the content for desktop</div>
<div class="two">this is the content for tablet</div>
<div class="three">this is the content for mobile</div>
</div>