Padding Shorthand

Padding Shorthand

Medium CSS Box Model & Sizing 23 views
Explanation Complexity

Problem Statement

Use padding shorthand to set top/right/bottom/left in one line.

Input Format

No input.

Output Format

Print the HTML+CSS code in one block.

Constraints

Use padding: top right bottom left.

Input / Output Format

Input Format
No input.
Output Format
Print the HTML+CSS code in one block.
Constraints
Use padding: top right bottom left.

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>
    .pill { padding: 6px 12px 8px 12px; background: #f3f4f6; border-radius: 999px; display: inline-block; }
  </style>
</head>
<body>
  <span class='pill'>meetcode</span>
</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>
    .pill { padding: 6px 12px 8px 12px; background: #f3f4f6; border-radius: 999px; display: inline-block; }
  </style>
</head>
<body>
  <span class='pill'>meetcode</span>
</body>
</html>
Please login to submit solutions.
Editor
Output

                                        
Please login to submit solutions.