On Safari phones, I get a terrible white stripe on top. I would like it to be filled with background
For example, on this site, there is no such strip on top
HTML file:
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<title>Авторизация</title>
<link rel="stylesheet" href="/css/login.css?v=1.1.4">
</head>
<body>
<div class="container-border active">
</div>
</body>
</html>
CSS file:
* {
margin: 0;
padding: 0;
box-sizing: border-box;
color: white;
}
html, body {
height: 100vh;
overflow-y: hidden;
background: linear-gradient(180deg, hsl(250, 15%, 30%), hsl(250, 15%, 10%));
}
body {
display: flex;
align-items: center;
justify-content: center;
}
2
Answers
I suppose you mean changing the color of the status bar?
Try to add
apple-mobile-web-app-status-bar-style
meta tag. You can checkout the ‘Changing the Status Bar Appearance’ of this pageOr, you can try to add
theme-color
meta tag. theme-colorI checked it on safari.
images
Code