Hello. I'm in the learning phase. In an attempt to create a responsive website. I need a .js or .css script. so that when this width in the css (css) is true, run the code. in css.
(thank you for giving any collaboration, knowledge is never d +)
<!-- language: lang-css -->
@media only screen and (max-width: 769px) {
}
$("#input-search").on("focus", function(){
$("#input-search").css({"width": "120px"});
}).on("blur", function(){
$("#input-search").css({"width": "80px"});
});
<li class="search">
<div class="input-group">
<input type="search" placeholder="search" id="input-search" style="width: 80px">
</div>
</li>