Body Margin Reset
CSS
Easy
2 views
Problem Description
Remove default body margin and add a light background for meetcode.
Output Format
Print the HTML+CSS code in one block.
Constraints
Use body { margin: 0; } and a background color.
Official Solution
<!doctype html>
<html lang='en'>
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<title>meetcode</title>
<style>
body { margin: 0; background: #f6f8fa; font-family: system-ui, Arial, sans-serif; }
header { padding: 12px 16px; background: #111; color: #fff; }
main { padding: 16px; }
</style>
</head>
<body>
<header>meetcode</header>
<main>
<p>Clean start.</p>
</main>
</body>
</html>
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!