20,100
edits
(let's try device width and some better numbers) |
(debug code again) |
||
| Line 10: | Line 10: | ||
/* Prevent content overlay when sidewards scrolling */ | /* Prevent content overlay when sidewards scrolling */ | ||
background-color:#F6F6F6; | background-color:#F6F6F6; | ||
} | |||
body::before | |||
{ | |||
content: "hopefully this is a desktop"; | |||
font-weight: bold; | |||
display: block; | |||
text-align: center; | |||
background: rgba(255, 255, 0, 0.9); /* Semi-transparent yellow */ | |||
position: absolute; | |||
top: 0; | |||
left: 0; | |||
right: 0; | |||
z-index: 99; | |||
} | } | ||
} | } | ||
| Line 19: | Line 33: | ||
{ | { | ||
position:absolute; | position:absolute; | ||
} | |||
body::before | |||
{ | |||
content: "hopefully this is a phone"; | |||
font-weight: bold; | |||
display: block; | |||
text-align: center; | |||
background: rgba(255, 255, 0, 0.9); /* Semi-transparent yellow */ | |||
position: absolute; | |||
top: 0; | |||
left: 0; | |||
right: 0; | |||
z-index: 99; | |||
} | } | ||
} | } | ||