Scroller { display: flex flex-direction: column overflow: auto width: 100% height: 100% min-height: 0px div.wrapper { align-self: center flex: 1 1 min-width: 780px max-width: 840px padding-top: .5rem section.content { div { border-bottom: solid 1px gainsboro } } } } Scroller -errors { div.wrapper { width: initial max-width: 100% section.content div { border: none } } }