.blog-article picture img { border: 1px solid #000; height: clamp(304px, 20vw, 432px); width: 100%; object-fit: cover; } .main-blog header span { min-width: fit-content; } .main-blog header a { border-bottom: 3px solid #fff; text-align: center; white-space: nowrap; } .main-blog header a.activeTab { border-bottom: 3px solid #000; } @media screen only and (min-width:1025px) { .main-blog header span { min-width: 8.5rem; } }