0
Well I’m in trouble when I call the background in body{} it appears as it is in img:
but when I use the same css code for a div or a Section it appears nothing .
Well the css code in question is this;
.slidee
{
margin: 0px;
overflow: hidden;
background-image: url(../../image/BannerWithText.png);
background-position: top center;
background-repeat: no-repeat;
background-attachment: fixed;
background-size:100% auto;
}
when I switch from . slide to body{} appears normal, but the call from Section class="slide" appears nothing ..
html code:
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>Secure Elo Bosting</title>
<link rel="stylesheet" href="css/estilos.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/font-awesome.css">
<script src="js/jquery-3.2.1.js"></script>
<script src="js/main.js"></script>
</head>
<body>
<header>
<span id="button-menu" class="fa fa-bars"></span>
<nav class="navegacion">
<ul class="menu">
<!-- TITULAR -->
<!-- TITULAR -->
<li><a href="#"><span class="fa fa-home icon-menu"></span>Inicio</a></li>
<li class="item-submenu" menu="1">
<a href="#"><span class="fa fa-suitcase icon-menu"></span>Serviços</a>
<ul class="submenu">
<li class="go-back">Voltar</li>
<li><a href="#">MD10</a></li>
<li><a href="#">Elo Boosting</a></li>
<li><a href="#">Duo Boosting</a></li>
<li><a href="#">Vitorias</a></li>
</ul>
</li>
<li><a href="#"><span class="fa fa-envelope icon-menu"></span>Duvidas Frequentes</a></li>
<li><a href="#"><span class="fa fa-tag icon-menu"></span>Contato</a></li>
</ul>
</nav>
</header>
<section id="slide">
<div class="slidee">
</div>
</section>
</body>
</html>
The first part I did not understand mt well, the second part I understood and tidied up, but continued the same way. The only way q appears the background or any other img is by using the so-called body{} if it is not with the body does not appear and I wanted to do a slide down the menus .
– Felipe