# How to attach one or more drop-shadows to the box with JavaScript?

HTMLJavascriptProgramming Scripts

To attach drop-shadows to the box, use the boxShadow property in JavaScript. With this property, add the width of the shadow as well as color.

## Example

You can try to run the following code to learn how to attach one or more drop-shadows.

Live Demo

<!DOCTYPE html>
<html>
<style>
#box {
border: thick solid green;
width: 300px;
height: 200px
}
</style>
<body>
<div id="box">Demo Text</div>
<br><br>
</html>