Skip to content

Instantly share code, notes, and snippets.

View TomDawson's full-sized avatar
🇹🇩

Tom Dawson TomDawson

🇹🇩
View GitHub Profile
@TomDawson
TomDawson / shifting-moble-background-image-fix.css
Last active July 29, 2023 05:18
Fix for background image shifting and revealing white space when mobile URL/menu collapses
body::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
background-image: url(../images/background-dark.jpg);
background-color: #171a21;
background-size: cover;