본문 바로가기

[Study & Job]/[Web Dev & Pentesting]

div에 그림자 씌우기

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Example</title>
<style type="text/css">
body {
    text-align: center;    
    margin: 0;
    background-color: #60b65b;
}
div.glow {
    width: 600px;
    height: 400px;
    margin: 0 auto;
    padding: 0 30px 30px 30px; 
    filter: glow(color=#406c2d, strength=15);  /* IE */
}
div.shadow {
    width: 100%;
    height: 100%;
    text-align: left;
    background-color: white;
    -webkit-box-shadow: 0 0 30px 10px rgba(0, 0, 0, 0.3);  /* Safari and Chrome */
    -moz-box-shadow: 0 0 30px 10px rgba(0, 0, 0, 0.3);  /* Firefox */
    box-shadow: 0 0 30px 10px rgba(0, 0, 0, 0.3);  /* CSS3 */
 }
</style>
</head>
<body>
<div class="glow">
<div class="shadow"></div>
</div>
</body>
</html>
반응형