Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IOS Safari: How to change background color of footer and header which is out of <body> bounds (refresh / bottom) area)

So, even with background color set like this:

body, html {
     background: #000;
}

When I scroll to the bottom of the page on IOS Safari, there is this "elastic part" which reveals a white background which is not part of the design of my website. Similar thing happens on header of the page when I try to refresh: enter image description here

It has been fixed on CNN.com, but I can't figure out how.

enter image description here

like image 266
yodalr Avatar asked Oct 25 '25 14:10

yodalr


1 Answers

According to this question, you could try the following:

<meta name="theme-color" content="#f6f8fa" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#161b22" media="(prefers-color-scheme: dark)">
like image 161
Gykonik Avatar answered Oct 27 '25 03:10

Gykonik