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**/
.cate-courses-scn, .cate-courses-scn * {
 --page-width: 1230px;
 --base-fm: 'Rubik', sans-serif;
 --title-size: 30px;
 --base-size: 16px;
 --white-clr: #ffffff;
 --theme-clr: #2441e7;
 --bg-clr: #efedeb;
}

.cate-courses-scn {
 background-color: var(--bg-clr);
 font-family: var(--base-fm);
 font-size: var(--base-size);
 padding: 50px 0;
 display: inline-block;
 width: 100%;
}

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

.cate-c-top h2 {
 font-size: var(--title-size);
 margin: 0px 0px 15px 0px;
}

.cate-c-top {
 max-width: 630px;
 margin: auto;
 text-align: center;
 line-height: 1.3;
}

.cate-c-top p {
 margin: 0px;
}

.cate-courses-list {
 display: flex;
 flex-flow: row wrap;
 width: calc(100% + 30px);
 margin-left: -15px;
 margin-top: 30px;
}

.cate-courses-list .cate-c-item {
 position: relative;
 width: calc(25% - 30px);
 margin: 15px;
 overflow: hidden;
 text-align: center;
 color: var(--white-clr);
 border-radius: 6px;
 padding: 20px;
 min-height: 170px;
 text-decoration: none;
 background-size: cover;
 display: flex;
 flex-flow: row wrap;
 align-items: center;
 justify-content: center;
 transition: 0.5s all;
 top: 0px;
}

.cate-courses-list .cate-c-item:hover {
 top: -5px;
}

.cate-courses-list .cate-c-item:before {
 background-color: rgba(10, 10, 10, .5);
 bottom: 0;
 content: "";
 left: 0;
 position: absolute;
 right: 0;
 top: 0;
 -webkit-transition: all 0.3s ease;
 -moz-transition: all 0.3s ease;
 -o-transition: all 0.3s ease;
 transition: all 0.3s ease;
}

.cate-courses-list .cate-c-item:hover:before {
 background-color: var(--theme-clr);
 opacity: 0.8;
}

.cate-courses-list .cate-c-item h4 {
 margin: 0px 0px 5px 0px;
 font-weight: 500;
 font-size: calc(var(--base-size) + 2px);
}

.cate-c-cont {
 position: relative;
}

@media(max-width:1200px) {
 .cate-courses-list .cate-c-item {
  width: calc(33.33% - 20px);
  margin: 10px;
 }

 .cate-courses-list {
  width: calc(100% + 20px);
  margin-left: -10px;
  margin-top: 20px;
 }

}

@media(max-width:767px) {
 .cate-courses-scn {
  padding: 30px 0px;
  font-size: calc(var(--base-size) - 2px)
 }

 .cate-c-top h2 {
  font-size: calc(var(--title-size) - 6px);
 }

 .cate-courses-list {
  width: calc(100% + 10px);
  margin-left: -5px;
 }

 .cate-courses-list .cate-c-item {
  width: calc(50% - 10px);
  margin: 5px;
  padding: 10px;
  min-height: 110px;
 }

}

Related Web Elements