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