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;
}

/**Typeo CSS End**/
.cmn-banner * {
 --base-fm: 'Rubik', sans-serif;
 --bnr-cont-w: 1400px;
 --bnr-cont-inner: 700px;
 --base-size: 18px;
 --base-clr: #656565;
 --title-size: 90px;
 --white-clr: #ffffff;
 --black-clr: #000000;
 --black-o-clr: 0, 0, 0;
}

.cmn-banner {
 width: 100%;
 min-height: 850px;
 display: flex;
 flex-flow: row wrap;
 align-items: center;
 justify-content: center;
 position: relative;
}

.cmn-bnr-img {
 width: 100%;
 height: 100%;
 position: absolute;
 left: 0px;
 top: 0px;
 background-position: center center;
 background-size: cover;
}

.banner-cont {
 padding: 50px 15px;
 max-width: var(--bnr-cont-w);
 width: 100%;
 text-align: left;
 font-family: var(--base-fm);
 position: relative;
 z-index: 1;
 text-transform: uppercase;
 color: var(--base-clr);
}

.bnr-cont-inner {
 max-width: var(--bnr-cont-inner);
}

.banner-cont .bnr-tag {
 font-size: var(--base-size);
 margin: 0px 0 15px 0;
 display: inline-block;
 font-weight: 700;
 letter-spacing: 2px;
 width: 100%;
}

.banner-cont .subtitle {
 font-size: calc(var(--title-size) - 40px);
 letter-spacing: 2px;
 margin: 0 0px 20px 0px;
}

.banner-cont h2 {
 font-size: var(--title-size);
 font-weight: 700;
 letter-spacing: 3px;
 margin: 0 0px 20px 0px;
}

.banner-cont .buttons {
 background-color: var(--black-clr);
 color: var(--white-clr);
 text-decoration: none;
 padding: 16px 34px;
 display: inline-block;
 font-size: var(--base-size);
 font-weight: 500;
 margin-top: 10px;
 transition: 0.5s all;
}

.banner-cont .buttons:hover {
 background-color: var(--white-clr);
 color: var(--black-clr);
}

@media(max-width:1500px) {
 .cmn-banner {
  min-height: 600px;
 }

}

@media(max-width:992px) {
 .cmn-banner {
  min-height: 400px;
 }

 .cmn-bnr-img {
  background-position: center right
 }

 .banner-cont {
  padding: 20px 15px;
  max-width: calc(100% - 40px)
 }

 .banner-cont h2 {
  font-size: calc(var(--title-size) - 30px);
  margin-bottom: 15px;
 }

 .banner-cont .buttons {
  font-size: calc(var(--base-size) - 4px);
 }

 .banner-cont .buttons {
  margin-top: 20px;
 }

}

@media(max-width:767px) {
 .banner-cont {
  color: var(--white-clr);
 }

 .banner-cont .bnr-tag {
  margin-bottom: 10px;
 }

 .banner-cont h2 {
  font-size: calc(var(--title-size) - 40px);
 }

 .banner-cont .buttons {
  margin-top: 20px;
  padding: 12px 26px;
 }

}

Related Web Elements