Make a website that has a border going around the entire screen. The border should be…
- User
Make a website that has a border going around the entire screen. The border should be moved away from the edges of the screen by 50px. And this border should have a linear-gradient color changing from #ffffff to #3df8c7
Assistant
Here's a simple HTML and CSS example to create a full-screen website with a border that is 50px away from each edge of the screen, and has a linear gradient from
#ffffffto#3df8c7.
✅ HTML + CSS Code
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <title>Gradient Border Website</title> <style> /* Reset default margin and padding */ * { margin: 0; padding: 0; box-sizing: border-box; } /* Fullscreen body with background color (optional) */ body { min-height: 100vh; background-color: #f0f0f0; /* Optional background for contrast */ } /* Container that creates the inset border effect */ .border-container { position: absolute; top: 50px; left: 50px; right: 50px; bottom: 50px; border: 4px solid transparent; /* Adjust thickness if needed */ background: linear-gradient(to right, #ffffff, #3df8c7); -webkit-background-clip: text; background-clip: text; display: flex; align-items: center; justify-content: center; } /* Inner content area to show the actual site content */ .content { background-color: white; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #333; font-family: Arial, sans-serif; font-size: 2rem; } </style> </head> <body> <!-- Gradient Border Container --> <div class="border-container"> <div class="content"> Welcome to My Website! </div> </div> </body> </html>
🔍 Explanation
- The
.border-containerdiv is positioned50pxaway from each edge usingtop,left,right, andbottom. - A
linear-gradientfrom#ffffffto#3df8c7is applied as the background. - The inner
.contentdiv represents your main page content.
🛠️ Optional Enhancements
- You can animate the gradient for a smooth effect.
- Add responsiveness for mobile devices.
- Use pseudo-elements like
::beforeor::afterto layer effects.
Let me know if you'd like a version with animation or responsive design!
- The
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.