[CSS] 그림자, text-shadow 속성

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


댓글

Designed by JB FACTORY