Shadow Card

Shadow Card

Easy CSS Box Model & Sizing 31 views
Explanation Complexity

Problem Statement

Add a soft shadow to a meetcode card.

Input Format

No input.

Output Format

Print the HTML+CSS code in one block.

Constraints

Use box-shadow with subtle values.

Input / Output Format

Input Format
No input.
Output Format
Print the HTML+CSS code in one block.
Constraints
Use box-shadow with subtle values.

Examples

Input:
Output:
(HTML+CSS code)

Example Solution (Public)

CSS
<!doctype html>
<html lang='en'>
<head>
  <meta charset='utf-8'>
  <meta name='viewport' content='width=device-width, initial-scale=1'>
  <title>meetcode</title>
  <style>
    .card { max-width: 380px; padding: 16px; border-radius: 14px; background: #fff; box-shadow: 0 10px 25px rgba(0,0,0,0.12); }
  </style>
</head>
<body>
  <div class='card'>
    <h2>meetcode</h2>
    <p>Shadow card</p>
  </div>
</body>
</html>

Official Solution Code

<!doctype html>
<html lang='en'>
<head>
  <meta charset='utf-8'>
  <meta name='viewport' content='width=device-width, initial-scale=1'>
  <title>meetcode</title>
  <style>
    .card { max-width: 380px; padding: 16px; border-radius: 14px; background: #fff; box-shadow: 0 10px 25px rgba(0,0,0,0.12); }
  </style>
</head>
<body>
  <div class='card'>
    <h2>meetcode</h2>
    <p>Shadow card</p>
  </div>
</body>
</html>
Please login to submit solutions.
Editor
Output

                                        
Please login to submit solutions.