[CSS] 그림자, text-shadow 속성
- 웹 개발/CSS
- 2019. 5. 8. 21:25
Text-Shadow : h-shadow v-shadow blur color;
- 그림자 오른쪽이동,그림자 아래쪽이동,블러, 색상.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <style> #p1:hover{ text-shadow: 3px 3px 2px #aaa; } #p2{ border: 1px solid gray; box-shadow:3px 3px 3px #aaa; } #list{ border:10px solid gray; width:710px; } #list img{ border:1px solid gray; float:left; margin-left:10px; margin-top:10px; margin-bottom:10px; opacity:.5; } #list img:last-child{ margin-right:10px; } #list img:hover{ box-shadow:0px 0px 5px gray; opacity:1; } </style> <title></title> <link rel="stylesheet" href="/WebClientTest/css/css/basic.css"> </head> <body> <p id="p1">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellat ab debitis voluptas accusantium est ea magnam animi ut eaque recusandae!</p> <p id="p2">Esse iure tempora neque aliquam debitis vero voluptas cupiditate eaque sequi voluptate asperiores consectetur unde at dolorum pariatur reprehenderit natus?</p> <div id="list"> <img src="../images/catty01.png"> <img src="../images/catty02.png"> <img src="../images/catty03.png"> <img src="../images/catty04.png"> <img src="../images/catty05.png"> <div style="clear:both;"></div> </div> </body> </html> | cs |
'웹 개발 > CSS' 카테고리의 다른 글
[CSS] Position 속성(static, absolute. relative, fixed) (1) | 2019.05.01 |
---|---|
[CSS] display 속성(none, block, inline, inline-block), hover (0) | 2019.04.28 |
[CSS] overflow 속성 알아보기 (2) | 2019.04.24 |
[CSS] 수치표현 (pt,px,em,%,rem,ex,mm,cm,pc, in) (0) | 2019.04.21 |
[CSS] 스타일 시트 선택자(Selector) 개념 및 사용법 종류 (0) | 2019.04.20 |