I have been desperately trying to play with my code to use a different video source on mobile, and nothing is working. Here is my code:
.video-container {
position: relative;
overflow: hidden;
}
.video-container::before {
content: “”;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.6);
}
.overlay {
position: absolute;
top: 48%;
left: 10%;
transform: translate(0%, 0%);
text-align: left;
color: white;
}
.container {
width: 100%; /* Set the width of your container */
}
.title {
font-size: 3em;
line-height: 0.8em;
}
.subtitle {
font-size: 1em;
line-height: 0.5em;
}
.button-section {
margin-top: 4vh;
}
@media (max-width: 600px) {
.title {
font-size: 2em;
line-height: 1;
}
.subtitle {
font-size: 1em;
line-height: 1.5;
}
.button-section {
margin-top: 2vh;
}
.text-block {
max-width: 300px;
margin: -110px auto 0; /* Set left and right margins to “auto” and add a top margin of -20px */
padding: 0;
}
}
WHY is this not working?
Site: coldpow.com
Pass: 24coldp