html + css: a world map
- User
html + css: a world map
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
html + css: a world map
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Here's a simple example of a world map using HTML and CSS. This uses a background image of a world map, which you can replace with your own image or a public domain source.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>World Map</title>
<style>
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
background-color: #f0f0f0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.map-container {
width: 90%;
max-width: 1000px;
height: 500px;
background-image: url('https://upload.wikimedia.org/wikipedia/commons/5/5f/World_map_blank.png');
background-size: cover;
background-position: center;
border: 2px solid #333;
border-radius: 10px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
position: relative;
}
.map-container::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.1);
border-radius: 10px;
}
h1 {
text-align: center;
color: #333;
margin-bottom: 20px;
}
</style>
</head>
<body>
<div>
<h1>World Map</h1>
<div class="map-container"></div>
</div>
</body>
</html>
https://upload.wikimedia.org/wikipedia/commons/5/5f/World_map_blank.png). You can replace this with your own image URL or hosted file.background-size, border, or box-shadow to customize it.width: 90% and max-width: 1000px.Let me know if you'd like a vector-based SVG example or help integrating interactivity! 🌎