-1
I’m having trouble with the menu, it’s not fixed, and when the iframe
of the scrool appears a border at the end of the iframe
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style>
body, html {
margin:0;
width:100%;
border: 0;
padding: 0;
height: 100%;
}
iframe {
height: calc(100% - 103px);
width:100%;
border:0;
margin: 0;
padding: 0;
overflow: visible;
}
.topnav {
overflow: hidden;
background-color: #00985F;
}
.topnav a {
float: left;
display: block;
color: #B3E0CF;
text-align: center;
padding: 14px 0px;
text-decoration: none;
font-size: 15px;
font-weight: 500;
border-bottom: 3px solid transparent;
font-family: Roboto, Noto, Helvetica, Arial, sans-serif;
width: 50%;
}
.topnav a:hover {
border-bottom: 3px solid #007248;
color: #fff;
}
.topnav a.active {
border-bottom: 3px solid #007248;
color: #fff;
}
.navbar{
background: #00985F;
left: 0;
top: 0;
height: 56px;
font-size: 20px;
color:white;
}
.navbar-inner{
width: 100%;
height: 100%;
justify-content: flex-start;
}
.left{
float:left;
}
.left a{
padding: 0 16px;
line-height: 56px;
height: 56px;
display: flex;
align-items: center;
padding: 0 16px;
min-width:30px;
}
.center{
font-size: 17px;
font-weight: 500;
text-align: center;
margin: 0 2px 0 4px;
position: relative;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
line-height: 56px;
display: inline-block;
text-align: left;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
font-family: Roboto, Noto, Helvetica, Arial, sans-serif;
}
</style>
</head>
<body>
<div class="navbar">
<div class="navbar-inner">
<div class="left">
<a href="http://onfutebol.hospedagemdesites.ws" class="back link icon-only">
<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path d='M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z' fill='#ffffff'/></svg>
</a>
</div>
<div class="center">Municipal de Campo</div>
</div>
</div>
<div class="topnav" id="myDIV">
<a target="Carregar" class="btn active" href="http://onfutebol.hospedagemdesites.ws/xanxere/municipal-de-campo/jogos">JOGOS</a>
<a target="Carregar" class="btn" href="http://onfutebol.hospedagemdesites.ws/xanxere/municipal-de-campo/classificacao">CLASSIFICAÇÃO</a>
</div>
<iframe name="Carregar" src="http://onfutebol.hospedagemdesites.ws/xanxere/municipal-de-campo/jogos"></iframe>
<script>
// Add active class to the current button (highlight it)
var header = document.getElementById("myDIV");
var btns = header.getElementsByClassName("btn");
for (var i = 0; i < btns.length; i++) {
btns[i].addEventListener("click", function() {
var current = document.getElementsByClassName("active");
current[0].className = current[0].className.replace(" active", "");
this.className += " active";
});
}
</script>
</body>
</html>
Could point with pictures the problem also kindly?
– user148754