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: #fff;
}

img {
 max-width: 100%;
}

/**Typeo CSS End**/
.imgwith-cont-scn, .imgwith-cont-scn * {
 --page-width: 1230px;
 --base-fm: 'Rubik', sans-serif;
 --title-size: 35px;
 --base-size: 18px;
 --black-clr: #000000;
 --white-clr: #ffffff;
 --bg-clr: #fffbf8;
 --theme-clr: #ff6200;
}

.text-center {
 text-align: center;
}

.page-width {
 max-width: var(--page-width);
 padding: 0 15px;
 margin: auto;
 width: 100%;
}

.imgwith-cont-scn {
 width: 100%;
 position: relative;
 font-size: var(--base-size)
 color:var(--white-clr);
 font-family: var(--base-fm);
 background-size: cover;
 padding: 20px 0px;
 display: flex;
 flex-flow: row wrap;
 justify-content: center;
 align-items: center;
 min-height: 300px;
}

.bg-overlay {
 width: 100%;
 position: absolute;
 left: 0px;
 top: 0px;
 height: 100%;
 background-color: rgba(0, 0, 0, 0.5);
}

.imgwith-cont-inner {
 position: relative;
 z-index: 1;
}

.imgwith-cont-inner h2 {
 color: var(--white-clr);
 margin-top: 0px;
 font-size: var(--title-size);
 font-weight: 400;
}

.imgwith-cont-inner .cmn-btn {
 padding: 12px 28px;
 border: 2px solid var(--theme-clr);
 color: var(--theme-clr);
 text-transform: uppercase;
 text-decoration: none;
 transition: 0.5s all;
 border-radius: 4px;
 font-size: var(--base-size);
 display: inline-block;
}

.imgwith-cont-inner .cmn-btn:hover {
 background-color: var(--theme-clr);
 color: var(--white-clr);
}

Related Web Elements