Get DIVs one to another + get independent size

I would have gone with display table:-

div {
  max-width: 350px;
  background-color: red;
  display: table;
}

div#one {
  display: table-cell;
  background-color: blue;
}

div#two {
  width: 75%;
  display: table-cell;
  background-color: yellow;
}

Or flex-box if feeling more adventurous.

1 Like