https://ibb.co/z5S7Kqh <-- I am facing an issue where my fixed div extends fully to the left and right as intended, but there is a visible gap that shows the background. Here is the CSS code I am using...
body {
font-family: "Arial";
color: rgb(0, 255, 97);
background-color: rgba(40, 40, 40);
align-self: center;
padding: 0;
margin: 0;
}
.topBar {
background-color: rgb(0, 0, 0);
width: 100%;
height: 15%;
position: fixed;
margin-top: 0;
}
#title {
text-align: center;
text-decoration: underline;
text-shadow: -0.05em -0.05em rgb(40, 40, 40);
font-size: 3em;
}
<div class="topBar">
<h1 id="title" onclick="openTab('https://www.jfkairport.com/')">Jhon F. Kennedy international Airport - Real Time Air Tracking</h1>
</div>
(Please ignore the JFK Airport reference. The onclick and its associated JS function are working correctly.)