Am just learning responsive design and would like to have a true understanding of what causes this.
#container {
  border: 2px solid red;
  position: relative;
}
#box1 {
  border: 1px solid blue;
  float: left;
  width: 33%;
  position: relative;
  display: inline;
}
#box2 {
  border: 1px solid green;
  width: 33%;
  position: relative;
  display: inline;
}
#box3 {
  border: 1px solid yellow;
  float: right;
  width: 33%;
  position: relative;
  display: inline;
}<div id="container">
  <div id="box1">BOX1</div>
  <div id="box2">BOX2</div>
  <div id="box3">BOX3</div>
</div>. BOX2 does not expand to 33% as it seems. floating the items and using clearfix was one way to get BOX2 to expand as seen here .
#container {
  border: 2px solid red;
  position: relative;
}
#box1 {
  border: 1px solid blue;
  float: left;
  width: 33%;
  position: relative;
  display: inline;
}
#box2 {
  border: 1px solid green;
  width: 33%;
  position: relative;
  display: inline;
  float: left;
}
#box3 {
  border: 1px solid purple;
  float: left;
  width: 33%;
  position: relative;
  display: inline;
}<div id="container">
  <div id="box1">BOX1</div>
  <div id="box2">BOX2</div>
  <div id="box3">BOX3</div>
  <div style='clear:both'></div>
</div>i would like to understand 1. WHY the browsers renders it as such 2. how to make the 3 boxes stay adjacent to each other even when i resize the browser window to its lowest possible size.
