body{ background-color: #eee; } .forecast { margin: 0; padding: 0.3rem; } .forecast > h1, .day-forecast { margin: 0.5rem; padding: 0.3rem; font-size: 1.2rem; } .day-forecast { border-radius: 5px; border: 1px solid lightgrey; background: right/contain content-box border-box no-repeat url('/media/examples/rain.svg') white; } .day-forecast > h2, .day-forecast > p { margin: 0.2rem; font-size: 1rem; } .day-forecast{ display: flex; flex-wrap: wrap; justify-content: space-between; } .day-forecast-text{ min-width: 200px; } .day-forecast-image{ padding: 1em; } footer{ font-style: italic; font-size: smaller; text-align: right; padding: 0.3rem; margin-right: 1rem; margin-left: 1rem; }