.SingleDayForecast { float: left; width: 20%; height: 100%; padding: 0 .5em; font-size: 1.25em; } .SingleDayForecast .SingleDayForecast-inner { position: relative; width: 100%; height: 100%; border: 2px solid gray; } .SingleDayForecast .summary { position: absolute; padding: 0 0.5em; padding-bottom: .5em; top: 0; left: 0; width: 100%; height: 40%; transition: 1s all; } .SingleDayForecast.maximize .summary { top: 45%; transform: translate(0, -50%); } .SingleDayForecast .summary>* { padding: 0.125em 0; } .SingleDayForecast .summary .weather-description { padding-bottom: .25em; } .SingleDayForecast .summary .weather-icon-container { padding: .75em 0; } .SingleDayForecast .summary .date { font-size: 1.5em; } .SingleDayForecast .summary .temp, .SingleDayForecast .summary .humidity { margin: auto; width: 70%; } .SingleDayForecast .summary .desc, .SingleDayForecast .summary .value { float: left; } .SingleDayForecast .summary .desc { width: 30%; text-align: right; } .SingleDayForecast .summary .value{ width: 70%; } .SingleDayForecast .clearfix { clear: both; } .SingleDayForecast .summary .bottom-dividor{ /* border-bottom: 2px solid #000; */ padding: 0 !important; position: absolute; top: 100%; left: 50%; width: 85%; height: 2px; background-color: #000; transform: translateX(-50%); transition: opacity 1s; } .SingleDayForecast.maximize .summary .bottom-dividor{ opacity: 0; } .SingleDayForecast .details { position: absolute; top: 40%; left: 0; width: 100%; height: 60%; overflow: auto; transition: visibility 0s 1s; } .SingleDayForecast.maximize .details { visibility: hidden; transition: visibility 0s 0s; }