Responsive Padding
CSS
Easy
2 views
Problem Description
Change padding of a container when screen is small.
Output Format
Print the HTML+CSS code in one block.
Constraints
Use one media query at 600px.
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>
.wrap { padding: 28px; border: 1px solid #eee; border-radius: 14px; }
@media (max-width: 600px) {
.wrap { padding: 14px; }
}
</style>
</head>
<body>
<div class='wrap'>Responsive padding on meetcode layout</div>
</body>
</html>
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!