<!DOCTYPE html>
<html lang="en">
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>A Great Demo on CodePen</title>
  <img class="box-shadow" src="https://alchemyimmersive.com/wp-content/uploads/sites/4/2020/04/apple-logo-transparent.png" alt="">
  <img class="drop-shadow" src="https://alchemyimmersive.com/wp-content/uploads/sites/4/2020/04/apple-logo-transparent.png" alt="">
body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 0;
  min-height: 100vh;

.box-shadow {
  width: 150px;
  /* Box shadow will create a shadow on the borders of the image file */
  box-shadow: 10px 10px 10px #000000;

.drop-shadow {
  width: 150px;
  /* drop-shadow() will create a shadow on the image alpha channel */
  filter: drop-shadow(10px 10px 10px #000000);

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.