JavaScript Responsive search box issue, need help please

Currently, I use PrestaShop, and I wanted to change the width of search box, but, when I change the width of search box to 650px, on desktop it's ok, but on mobile the search box is very long — not responsive at all. Can you help with this issue please?

#search_block_top {
  padding-top: 30px;
  width: 650px;
}
#search_block_top #searchbox {
  float: left;
  width: 100%;
  margin-top: -20px;
}
#search_block_top .btn.button-search {
  background: #7ab55c;
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  border: none;
  color: #fff;
  width: 80px;
  height: 40px;
  text-align: center;
  padding: 10px 0 11px 0;
}
#search_block_top .btn.button-search span {
  display: none;
}
#search_block_top .btn.button-search:before {
  content: "\f002";
  display: block;
  font-family: "FontAwesome";
  font-size: 17px;
  width: 100%;
  text-align: center;
}
#search_block_top .btn.button-search:hover {
  color: #6f6f6f;
}
#search_block_top #search_query_top {
  display: inline;
  padding: 13px 60px 13px 13px;
  height: 40px;
  background: #fbfbfb;
  margin-right: 1px;
}
.ac_results {
  background: #fff;
  border: 1px solid #d6d4d4;
  width: 271px;
  margin-top: -1px;
}
.ac_results li {
  padding: 0 10px;
  font-weight: normal;
  color: #686666;
  font-size: 13px;
  line-height: 22px;
}
.ac_results li.ac_odd {
  background: #fff;
}
.ac_results li:hover,
.ac_results li.ac_over {
  background: #fbfbfb;
}
form#searchbox {
  position: relative;
}
form#searchbox label {
  color: #333;
}
form#searchbox input#search_query_block {
  margin-right: 10px;
  max-width: 222px;
  margin-bottom: 10px;
  display: inline-block;
  float: left;
}
form#searchbox .button.button-small {
  float: left;
}
form#searchbox .button.button-small i {
  margin-right: 0;
}
Answer:1

Try setting max-width

#search_block_top {
 padding-top: 30px;
 width: 100%;
 max-width: 650px;
}
Answer:2

Say you have the following array: const ab = ['a', 'a', 'b', 'b', 'b', 'a', 'b', 'b', 'a']; How would you change this array so that all the "b" items get grouped together, until you hit another "a". ...

Say you have the following array: const ab = ['a', 'a', 'b', 'b', 'b', 'a', 'b', 'b', 'a']; How would you change this array so that all the "b" items get grouped together, until you hit another "a". ...

I have a search bar with a toggle button above it. When I click the toggle button, it gradually changes the opacity. It works great, but it looks a bit clunky, because when I disable it (thus hiding ...

I have a search bar with a toggle button above it. When I click the toggle button, it gradually changes the opacity. It works great, but it looks a bit clunky, because when I disable it (thus hiding ...

I am using angularJS and bootstrap in a single project. When the web page is in the responsive mood , bootstrap navbar menu changes to toggler the menu responsive nav bar. The issue is when I use ...

I am using angularJS and bootstrap in a single project. When the web page is in the responsive mood , bootstrap navbar menu changes to toggler the menu responsive nav bar. The issue is when I use ...

  1. angular with bootstrap 4
  2. angular with bootstrap example
  3. angular with bootstrap tutorial
  4. angular with bootstrap or material
  5. angular with bootstrap 4 tutorial
  6. angular with bootstrap 3
  7. angular with bootstrap theme
  8. angular with bootstrap stackblitz
  9. angular with bootstrap 4 example
  10. angular with bootstrap template
  11. angular with bootstrap
  12. angular with bootstrap modal
  13. angular with bootstrap css
  14. angular with bootstrap table
  15. angular with bootstrap dropdown
  16. angular with bootstrap and jquery
  17. angularjs bootstrap
  18. angular with bootstrap grid
  19. angular with bootstrap datepicker
  20. angular with bootstrap sass

Following this topic, I am trying to generate a 3D curved triangle as a NURBS surface, but I don't understand how to set up my 3D points to do that. Here is the current implementation : var edges = ...

Following this topic, I am trying to generate a 3D curved triangle as a NURBS surface, but I don't understand how to set up my 3D points to do that. Here is the current implementation : var edges = ...