.course-item { width: 47.8%; margin-top: 15px; margin-bottom: 5px; position: relative; img { width: 100%; height: 119px; min-height: 119px; border-radius: 3px; } .course-status{ width: 100%; height: 24px; position: absolute; top: 95px; border-radius: 0 0 3px 3px; text-align: center; line-height: 24px; color: $white; font-size: 13px; background-color: #E02E24; opacity: .6; } .course-title { font-size: 14px; color: $color_333; min-height: 38px; line-height: 19px; margin-top: 9px; } }