Monospace Code Block
CSS
Easy
3 views
Problem Description
Style a code block for a meetcode snippet.
Output Format
Print the HTML+CSS code in one block.
Constraints
Use monospace font and a soft background.
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>
pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #0b1220; color: #f7f7f7; padding: 12px; border-radius: 14px; width: 420px; overflow: auto; }
</style>
</head>
<body>
<pre>const site = 'meetcode';
console.log(site);</pre>
</body>
</html>
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!