I’m creating a website where the homepage is a faded live video as a background and then simple text on top or a call-to-action button and then a top navigation menu with a few pages and a logo.
These are my codes and my page is a stand-still, links are acting like plain text instead of clickable links. I have no idea what I’m doing wrong.
My second concern is checking the page in chrome looks perfect, but when I check it again in Microsoft Edge, the video doesn’t fill the page, it isn’t resizing, there’s a weird border happening on both sides. I’ve attached a screenshot of what it looks like in MS-Edge. Please help me!!!
Thanks,
Mahiya
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="description" content="">
<meta name="author" content="">
<title>Arks Digital Marketing</title>
<link rel= "stylesheet" href="style.css" />
</head>
<body>
<div class="background-wrap">
<video id="video-bg-elem" preload="auto" autoplay loop="loop" muted="muted">
<source src="video.mp4" type="video/mp4">
Video not supported
</video>
</div>
<div class="div2 absolute">
<nav class="animated fadeInDown">
<img src="logo.png" alt="Arks Digital Marketing" class="logo">
<a href="index.html" id="welcome">Welcome</a>
<a href="ServicesOffered.html">Services Offered</a>
<a href="Blogs.html">Blogs</a>
<a href="ContactUs.html">Contact Us</a>
</nav>
</div>
<div class="content">
<h1>Arks Digital Marketing</h1>
<p>Helping businesses reach new levels of growth!</p>
</div>
</body>
</html>
* {
margin: 0;
padding: 0;
}
body {
font-family: Calibri, sans-serif;
}
.background-wrap {
position: fixed;
z-index: -1000%;
width: 100%;
height: 100%;
overflow: hidden;
top: 0;
left: 0;
}
#video-bg-elem {
top: 0;
left: 0;
height: 100%;
width: 100%;
object-fit: cover;
}
.content {
position: absolute;
width: 100%;
min-height: 100%;
z-index: 1000;
background-color: rgba(0,0,0,0.3);
}
.content h1 {
text-align: center;
font-size: 65px;
text-transform: uppercase;
font-weight: 300;
color: #fff;
padding-top: 25%;
margin-bottom: 10px;
}
.content p {
text-align: center;
font-size: 20px;
letter-spacing: 3px;
color: #aaa;
}
nav {
background-color: RGBA(0,0,0,0.2);
position: fixed;
}
.logo {
width: 15%;
margin-left: 6%;
margin-right: 20%;
}
#welcome{
border-bottom: 6px solid #ff9d00;
border-radius: 22%;
}
a {
text-decoration: none;
font-size: 2vh;
font-size: 1.5vw;
color: #fff;
font-family: 'Segoe Script';
margin-right: 6%;
padding-bottom: 0.2%;
}
a:hover{
border-bottom: 6px solid #ff9d00;
border-radius: 22%;
color: #ff9d00;
.absolute {
position: absolute;
left: 0; right: 0; bottom: 0; top: 0;
}