h3 { position: relative; padding-bottom: 20px; &:after { content: ""; position: absolute; width: 48px; height: 2px; background-color: rgba(0,0,0,.2); bottom: 0; left: calc(50% - 24px); } }