-1
Hello. I’m in the learning phase. Trying to create a responsive website. I need a . js or .css. script so that when this width in the code (css) is true, run the code. in css.
(I thank you give of 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>
Please clarify your question further. It is not clear.
– Sam
Ruan be clearer in your question. What do you want to change when the screen size is smaller? Do you want to change a place picture? Want to change the background color? Want to change the font size? Or you want to run something like when it is smaller run a script to do what more precisely?
– hugocsl