분류
css
예쁜 텍스트 밑줄
본문
HTML :
<p class="pretty-text-underline">Pretty text underline without clipping descending letters.</p>
CSS :
.pretty-text-underline {
display: inline;
text-shadow: 1px 1px #f5f6f9, -1px 1px #f5f6f9, -1px -1px #f5f6f9, 1px -1px #f5f6f9;
background-image: linear-gradient(90deg, currentColor 100%, transparent 100%);
background-position: bottom;
background-repeat: no-repeat;
background-size: 100% 1px;
}
.pretty-text-underline::-moz-selection {
background-color: rgba(0, 150, 255, 0.3);
text-shadow: none;
}
.pretty-text-underline::selection {
background-color: rgba(0, 150, 255, 0.3);
text-shadow: none;
}
- 이전글모든 스타일 재설정 18.08.31
- 다음글호버 위에 대화식 팝업 메뉴를 표시합니다. 18.08.31