
<div>
The brown fox jumps over the lazy dog.
</div>
div {
background-color: orange;
font-size: 30px;
padding: 20px;
width: 200px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
position: relative;
}
div::after {
border: 3px solid tomato;
box-sizing: border-box;
content: "";
width: 50%;
height: 100%;
position: absolute;
top: 0;
right: 0;
backdrop-filter: blur(10px);
}'CSS' 카테고리의 다른 글
| [CSS] 텍스트가 넘칠경우 생략해서 ... 보여주는 방법 (0) | 2022.08.08 |
|---|---|
| [CSS] transform에서 자주 사용하는 함수 정리, perspective 함수와 속성, backface-visibility 속성 (0) | 2022.05.23 |
| [CSS/문제해결] input 태그에 focus했을때 border 색깔 변경하는 방법 (0) | 2022.05.13 |
| [CSS] transition 속성으로 애니메이션 효과 주기 (0) | 2022.05.11 |
| [CSS] transform, keyframes로 애니메이션 효과 주기 (0) | 2022.05.10 |
댓글