remove text shadow on select

by danield770

HTML

<div>Hello there </div>

<div class="removeTxtShadow">Hello there </div>

CSS

div
{
    width: 150px;
    height: 50px;
    background: #efe7eb;
    margin: 15px;
    color: #681744;
    font-weight: bold;
    font-size: 24px;
    text-shadow: 0 2px #fff;
    padding: 10px;
}

.removeTxtShadow::-moz-selection {
    text-shadow: none;
    background: #333;
    color: #fff;
}

.removeTxtShadow::selection {
    text-shadow: none;
    background: #333;
    color: #fff;
}