← Back
Editing: tag.css
main { display: flex; justify-content: center; } .tag-posts-container { width:70vw; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 50px; justify-items: center; } .tag-posts-container a { text-decoration: none; } .post-item { display: block; color: #000; text-decoration: none; background-color: #f9f9f9; border: 1px solid #eaeaea; } .image { position: relative; width: 300px; height: 200px; } .img-post { width: 300px; height: 200px; } .post-category { position: relative; left: 10px; bottom: 190px; background-color: orange; color: #FFF; font-size: 15px; font-weight: 500; padding: 3px 10px; border-radius: 20px; } .post h2 { color: #333; line-height: 25px; } .post-meta { font-size: 14px; color: #333; } .post-excerpt { margin-top: 10px; color: #333; } @media (max-width: 768px) { .tag-posts-container { grid-template-columns: repeat(1, 1fr); } .post-category { font-size:15px; padding: 0px 10px; } }
Save File
Cancel