Coder Wrap provides free to use snippets Coder Wrap provides free to use snippets

Back to Web elements
Preview Source Code
Download
HTML
CSS
/**Typeo CSS Start**/
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,400;0,500;0,700;0,800;1,300;1,400;1,500;1,600;1,700&display=swap');

* {
 box-sizing: border-box;
}

body {
 margin: 0px;
 background-color: #ffffff;
}

/**Typeo CSS End**/
.bgpromotion, .bgpromotion * {
 --page-width: 1230px;
 --base-fm: 'Rubik', sans-serif;
 --title-size: 40px;
 --base-size: 16px;
 --white-clr: #ffffff;
 --theme-clr: #0887c5;
 --bg-clr: #efedeb;
}

.bgpromotion {
 display: flex;
 flex-flow: row wrap;
 justify-content: center;
 align-items: center;
 width: 100%;
 background-position: center;
 min-height: 600px;
 position: relative;
 text-align: center;
 color: var(--white-clr);
 font-family: var(--base-fm);
}

.bgpromotion:before {
 background-color: rgba(25, 38, 117, 0.8);
 content: "";
 height: 100%;
 left: 0;
 position: absolute;
 top: 0;
 width: 100%;
}

.promotion-inner {
 position: relative;
 z-index: 1;
 max-width: 800px;
}

.promotion-inner h2 {
 font-size: var(--title-size);
 margin: 20px 0;
 font-weight: 500;
}

.btn-cmn {
 color: #fff;
 border: #fff 1px solid;
 padding: 14px 30px;
 display: inline-block;
 border-radius: 40px;
 text-decoration: none;
 transition: 0.5s all;
}

.btn-cmn:hover {
 background-color: #fff;
 color: #000;
}

@media(max-width:1200px) {
 .bgpromotion {
  min-height: 480px
 }

}

@media(max-width:992px) {
 .bgpromotion {
  min-height: 380px
 }

 .promotion-inner h2 {
  font-size: calc(var(--title-size) - 10px);
 }

 .promotion-inner {
  padding: 40px;
 }

}

@media(max-width:767px) {
 .bgpromotion {
  min-height: inherit;
 }

 .promotion-inner h2 {
  font-size: calc(var(--title-size) - 14px);
  margin: 10px 0;
 }

 .btn-cmn {
  padding: 10px 20px;
 }

}

Related Web Elements