0

ul.nav.top-bar-nav li.menu-item a {
    position: relative;
}
ul.nav.top-bar-nav li.menu-item a:hover::before {
    content: attr(data-title);
    background-color: #000;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 14px;
    display: block;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 1;
}

admin Asked question November 3, 2021
Add a Comment