.banner { width: 100%; height: 9rem; background: black; position: relative; background-repeat: no-repeat; background-size: auto 100%; background-position: 50%; } .banner-title { height: 1.375rem; font-size: 1.25rem; font-weight: normal; color: #ffffff; position: absolute; line-height: 1.375rem; left: 50%; top: calc((9rem - 0.6875rem) / 2); transform: translate(-50%, 0); }