body, html { width: 100%; height: 100%; margin: 0; padding: 0; float: left; } #btnDiv { width: 40%; height: 50px; float: left; display: flex; align-items: center; justify-content: space-around; padding: 0 30%; } #ifrDiv { width: 100%; height: calc(100% - 90px); float: left; } #ifr { width: 100%; height: 100%; border: 0; float: left; } .btnSty { width: 80px; height: 30px; color: #bdb9b9; background-color: transparent; border: 1px solid #bdb9b9; border-radius: 2px; cursor: pointer; } .btnSelSty { color: #fff; background-color: #285990; border: 1px solid #88c6ff; }