CSS Shadow Effects: Output
CSS Shadow Effects: Output
• The above example shows a red and blue neon glow shadow
• The following example shows a white text with black, blue, and
darkblue shadow:
h1 {
color: white;
text-shadow: 1px 1px 2px black, 0 0 25px blue, 0 0 5px darkblue;
}
Output:
CSS box-shadow Property
• In its simplest use, you only specify the horizontal shadow and
the vertical shadow:
div {
width: 300px;
height: 100px;
padding: 15px;
background-color: yellow;
box-shadow: 10px 10px;
}
<div>This is a div element with a box-shadow</div>
Output:
CSS box-shadow Property
div {
width: 300px;
height: 100px;
padding: 15px;
background-color: yellow;
box-shadow: 10px 10px grey;
}
<div>This is a div element with a box-shadow</div>
Output:
CSS box-shadow Property
div {
width: 300px;
height: 100px;
padding: 15px;
background-color: yellow;
box-shadow: 10px 10px 5px grey;
}
<div>This is a div element with a box-shadow</div>
Output: