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: 20px;
 --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 20px 0px;
}

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

.blog-list .blog-item {
 width: calc(50% - 20px);
 margin: 15px 10px;
 display: flex;
 flex-flow: row wrap;
}

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

.blog-img {
 overflow: hidden;
 position: relative;
 width: 150px;
 height: 150px;
 border-radius: 4px;
}

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

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

.blog-list .blog-item .blog-cont {
 padding: 0px 5px 5px 20px;
 width: calc(100% - 150px);
}

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

.blog-item:hover .b-item-name {
 color: var(--theme-clr)
}

.blog-item .postdate {
 color: var(--base-clr);
 font-size: var(--base-size);
}

@media(max-width:992px) {
 .blog-list-scn h2 {
  font-size: calc(var(--title-size) - 4px);
  margin-bottom: 20px;
 }

}

@media(max-width:767px) {
 .blog-list-scn {
  padding: 30px 0;
 }

 .blog-list {
  width: 100%;
  margin-left: 0;
 }

 .blog-list .blog-item {
  width: 100%;
  margin: 10px 0px;
 }

 .blog-list .blog-item .blog-cont {
  padding: 0px 5px 12px 15px;
 }

 .blog-list-scn h2 {
  font-size: calc(var(--title-size) - 4px);
  margin-bottom: 10px;
 }

}

Related Web Elements