.sort { position: absolute; right: 0; text-align: right; top: 0; width: 200px; z-index: 1; } .sort-item { border: 1px solid brickred; cursor: pointer; font-size: 13px; line-height: 34px; padding: 0 10px; } .sort-item:hover { background: yellow; } .sort-item.active { background: red; } .sort-text { }