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**/
* {
 box-sizing: border-box;
}

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

img {
 max-width: 100%;
}

/**Typeo CSS End**/
.counters, .counters * {
 --page-width: 1230px;
 --base-fm: 'system-ui', sans-serif;
 --title-size: 30px;
 --base-size: 20px;
 --black-clr: #000000;
 --white-clr: #ffffff;
 --bg-clr: #202020;
 --theme-clr: #0058cd;
}

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

.counters {
 line-height: 1.3;
 width: 100%;
 font-size: var(--base-size)
 color:var(--white-clr);
 font-family: var(--base-fm);
 padding: 70px 0px;
 background-color: var(--bg-clr);
 
}

.counters h2 {
 font-size: var(--title-size);
 margin-top: 0px;
 margin-bottom: 20px;
 color:var(--white-clr);
}

.counters-list {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
 grid-gap: 20px;
}

.counters-list .counters-item {
 background-color: var(--white-clr);
 border: #d9d9d9 1px solid;
 display: flex;
 align-content: center;
 
}

.counters-cont {
 width: 100%;
 padding: 20px;
}

.counters-list .counters-item h3 {
 font-size: 40px;
 color: var(--theme-clr);
 margin: 0;
}

.counters-list .counters-item p {
 font-size: var(--base-size);
 line-height: 1.5;
 margin: 10px 0px 0px 0px;
}

@media(max-width: 992px) {
	.counters {
		padding: 40px 0px;
	}
	.counters-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    grid-gap: 10px;
}
.counters-list .counters-item p {
	font-size: calc(var(--base-size) - 5px);
}
}
@media(max-width: 500px) {
	
	.counters-list {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-gap: 10px;
}
 .counters-list .counters-item h3 {
    font-size: 30px;
    margin: 0;
}
}

Related Web Elements