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

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

.blog-list-scn, .blog-list-scn * {
 --page-width: 1230px;
 --base-fm: 'Rubik', sans-serif;
 --base-clr: #333232;
 --title-size: 30px;
 --itemtitle-size: 24px;
 --base-size: 16px;
 --white-clr: #ffffff;
 --theme-clr: #ff6200;
 --bg-clr: #efedeb;
}

.blog-list-scn {
 padding: 50px 0px;
 font-family: var(--base-fm);
 font-size: var(--base-size);
 color: var(--base-clr);
}

.blog-list-scn h2 {
 font-size: var(--title-size);
 margin: 0px 0px 30px 0px;
 text-align: center;
}

.blog-list {
 display: flex;
 flex-flow: row wrap;
 width: calc(100% + 20px);
 margin-left: -10px;
}

.blog-list .blog-item {
 width: calc(33.33% - 20px);
 margin: 15px 10px;
}

.blog-list .blog-item img {
 max-width: 100%;
}

.blog-img {
 overflow: hidden;
 position: relative;
 width: 100%;
 height: 260px;
 border-radius: 6px;
}

.blog-img img {
 object-fit: cover;
 width: 100%;
 height: 100%;
 transition: 0.5s all;
 display: block;
}

.blog-list .blog-item:hover img {
 transform: scale(1.2);
}

.blog-list .blog-item .blog-cont {
 padding: 20px 0;
}

.blog-item .b-item-name {
 font-size: var(--itemtitle-size);
 text-decoration: none;
 color: var(--base-clr);
 font-weight: 500;
 margin-bottom: 0px;
 display: inline-block;
 width: 100%;
}

.blog-item .blogdesc {
 margin: 0px 0px 15px 0px;
 display: inline-block;
 width: 100%;
 line-height: 1.3;
 display: none;
}

.blogtag {
 font-size: calc(var(--base-size) - 2px);
 margin-bottom: 10px;
 display: inline-block;
}

.blog-list .blog-item:first-child {
 display: flex;
 width: 100%;
 flex-flow: row wrap;
}

.blog-list .blog-item:first-child .blog-img {
 width: 60%;
 height: 430px;
}

.blog-list .blog-item:first-child .blog-cont {
 width: 40%;
 padding: 30px;
}

.blog-list .blog-item:first-child .blog-cont .b-item-name {
 font-size: calc(var(--itemtitle-size) + 10px);
 padding-bottom: 15px;
}

.blog-list .blog-item:first-child .blog-cont .blogdesc {
 display: block;
}

@media(max-width:1024px) {
 .blog-list .blog-item:first-child .blog-cont .b-item-name {
  font-size: calc(var(--itemtitle-size) + 5px);
 }

 .blog-list .blog-item:first-child .blog-cont {
  padding: 20px;
 }

 .blog-item .b-item-name {
  font-size: calc(var(--itemtitle-size) - 4px);
 }

}

@media(max-width:992px) {
 .blog-list .blog-item {
  margin: 10px 10px;
 }

 .blog-img {
  height: 180px;
 }

 .blogtag {
  font-size: calc(var(--base-size) - 2px);
 }

 .blog-item .b-item-name {
  font-size: calc(var(--itemtitle-size) - 6px);
 }

 .blog-list .blog-item:first-child .blog-img {
  width: 55%;
  height: 350px;
 }

 .blog-list .blog-item:first-child .blog-cont .b-item-name {
  font-size: calc(var(--itemtitle-size));
 }

 .blog-list .blog-item:first-child .blog-cont {
  width: 45%;
  padding: 15px;
 }

}

@media(max-width:767px) {
 .blog-list .blog-item {
  margin: 10px 10px;
  width: 100%;
 }

 .blog-img {
  height: auto;
 }

 .blog-list .blog-item:hover img {
  transform: none;
 }

 .blog-list .blog-item:first-child .blog-img {
  width: 100%;
  height: auto;
 }

 .blog-list .blog-item:first-child .blog-cont {
  width: 100%;
  padding: 20px 0px;
 }

}

Related Web Elements