property box-shadow ត្រូវបានគេយកទៅប្រើប្រាស់សំរាប់កណត់ស្រមោលរបស់ element ទាំងឡាយដូចខាងក្រោមនេះ៖
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Box Shadow</title>
<style>
div {
width: 300px;
height: 100px;
padding: 15px;
background-color: yellow;
box-shadow: 10px 10px;
}
</style>
</head>
<body>
The box-shadow Property
This is a div element with a box-shadow
</body>
</html>
The box-shadow Property
This is a div element with a box-shadow
លើសពីនេះទៀត បើសិនជាយើងចង់កែប្រែពណ៌ស្រមោលរបស់ element យើងត្រូវធ្វើដូចខាងក្រោមនេះ៖
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Box Shadow</title>
<style>
div {
width: 300px;
height: 100px;
padding: 15px;
background-color: yellow;
box-shadow: 10px 10px red;
}
</style>
</head>
<body>
The box-shadow Property
This is a div element with a box-shadow
</body>
</html>
The box-shadow Property
This is a div element with a box-shadow
មួយវិញទៀត បើសិនជាយើងចង់លុបជ្រុងរបស់ស្រមោលកុំអោយឃើញច្បាស់ពេក យើងត្រូវធ្វើដូចខាងក្រោមនេះ៖
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Box Shadow</title>
<style>
div {
width: 300px;
height: 100px;
padding: 15px;
background-color: yellow;
box-shadow: 10px 10px 8px red;
}
</style>
</head>
<body>
The box-shadow Property
This is a div element with a box-shadow
</body>
</html>
The box-shadow Property
This is a div element with a box-shadow














