.resource-cards { width: 100%; } .resource-card { max-width: 350px; width: 40%; min-width: 300px;; height: 130px; border: 1px solid #e9e9e9; border-radius: 6px; font-size: 12px; color: #777; display: inline-block; margin: 20px 40px 10px 0; vertical-align: middle; transition: all 0.3s ease; position: relative; overflow: hidden; } .resource-card:hover { box-shadow: 0 1px 4px rgba(64,64,64,.2); } .resource-card:hover .resource-card-title { color: #2db7f5; } .resource-card.disabled { opacity: 0.45; pointer-events: none; } .resource-card img { display: inline-block; vertical-align: middle; width: 50px; margin: 0 20px 0 24px; position: absolute; top: 50%; transform: translateY(-50%); } .resource-card-content { display: inline-block; vertical-align: middle; position: absolute; top: 50%; transform: translateY(-50%); margin-left: 92px; } .resource-card-title { display: block; font-size: 16px; color: #666; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 1; margin-bottom: 8px; } .resource-card-description { display: block; color: #999; padding-right: 8px; }