#services { list-style: none; display: inline-block; width: 340px; text-align: left; } #services p { display: block; padding: 15px 20px; background-color: #f8f8f8; color: #7b8585; margin-bottom: 3px; position: relative; cursor: pointer; transition: 0.3s; } #services p b { position: absolute; right: 28px; line-height: 16px; width: 100px; color: #808787; text-align: right; } #services p:hover { background-color: #d8f2f1; } #services p.active { color: #fff; background-color: #41c7c2; } #services p.active b { color: #fff; } #total { background: none !important; cursor: default !important; padding-top: 10px !important; }