Professional Documents
Culture Documents
Property
</style>
</head>
<body>
<h1>Text-shadow effect!</h1>
<p><b>Note:</b> Internet Explorer 9 and earlier<br>
versions, do not support the text-shadow property.</p>
</body>
What is CSS
The CSS3 box-shadow property applies shadow to elements.
In its simplest use, you only specify the horizontal shadow an
the vertical shadow:
text-shadow
box-shadow
SHADOW
<style>
div {
width: 300px;
height: 100px;
padding: 15px;
background-color: yellow;
box-shadow: 10px 10px;
}
</style>
</head>
<body>
<div>This is a div element with a box-shadow</div>
</body>
<head>
<style>
div.polaroid {
width: 250px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
text-align: center;
}
div.container {
padding: 10px;
}
</style>
</head>
<body>
<h2>Polaroid Images / Cards</h2>
<p>The box-shadow property can be used to create paper-like cards:</p>
<div class="polaroid">
<img src="rock600x400.jpg" alt="Norway" style="width:100%">
<div class="container">
<p>Hardanger, Norway</p>
</div>
</div>
Visit Us : Attitude Academy