I am looking at overstock.com and they have a row where the logo, the search bar, and couple of icons are all in one div. But, when you resize the window the only element that changes its width is the search bar. In my example, I try to copy it, but whenever I hit a certain window width the section that has 4 circles in it drops out of the container that holds everything. Is there a way to only make one element resize when the window resizes in css?
Edit: this is not the same as the possible duplicate of another question. The primary reason why is the fact that in my questions there are three sections in one row and I am trying to only effect the middle section to resize. The other question is asking how to fill a remaining space with only two sections. In addition to they only want the right section to take up the remaining space. That is not what I'm trying to do, I only want the middle section to resize when I resize the window
CSS
.container {
border:1px solid grey;
height:60px;
margin: 15px auto;
position:relative;
}
.container.a > div {
}
#search input {
width:auto;
border-radius:5px;
border-color:grey;
width:100%;
}
.icon {
background:crimson;
border-radius:50%;
height:60px;
width:60px;
display:inline-block;
}
#icon-set {
margin-left:15px;
}
#icon-set:after {
display:table;
content:"";
clear:both;
}
.log {
font-size:36px;
font-weight:bold;
margin-right:15px;
}
.search-bar {
max-width:700px;
width:100%;
position:relative;
max-height:35px;
align-self:center;
}
.search-bar form {
width:inherit;
padding-right:52px;
}
.inp {
width:inherit;
height:35px;
}
.but {
position:absolute;
right:0;
width:52px;
height:35px;
background:crimson;
color:white;
border-style:none;
top:0;
}