everyone and thanks for your help, I will briefly say what I do: I am building a website for large and small devices. (computers and phones or small screens of computer, whatever...).
On the computer it shows: Viewing the site through the computer (It's OK!).
my code:
*{
padding: 0;
margin: 0;
}
body {
background: linear-gradient(
to right,
yellow 0%,
yellow 40%,
black 41%,
black 59%,
purple 60%,
purple 100%
);
display: flex;
justify-content: center;
text-align:center;
overflow-y: hidden;
overflow-x: hidden;
}
div.header {
text-shadow: 2px 2px red;
outline:5px dotted red;
border-radius: 1000px;
background: hsl(0 0% 100%);
outline-offset:0px;
max-width:550px;
margin: auto;
margin-top: 200px;
display: flex;
justify-content: center;
}
h1 {
font-size:clamp(1rem, 0.8rem + 3vw, 3rem);
margin: 5px;
}
.wrapper {
min-height:100vh;
display: flex;
flex-direction:column;
justify-content:space-around;
align-items:center;
max-width: 550px;
}
.top {
width: 100%;
display: grid;
}
<html>
<head>
<title>New Game.io</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div class="wrapper">
<div class="top">
<div class="header">
<h1>New Game.io</h1>
</div>
</div>
</div>
</body>
</html>
What am I stuck on? On the phone/small screens it shows: Viewing the site through the phone/small screens (It's not OK!).
My goal: in colors that expand according to the device's screen (including a black color in the middle).