Full Slide Bootstrap

1
Hello, I added a carousel slide on the site I'm developing, and I'd like it to have width: 100% in my header, but even adding this property is not applied, as in the image

Canyouhelpme?

Thisismyindex:

<!DOCTYPE html>
    <html >
    <head>
        <meta charset="UTF-8">
        <title>Auto Jet - Serviços Automotivoss</title>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="css/home.css">
        <link rel="stylesheet" href="css/geral.css">
        <link rel="stylesheet" href="css/plugins.css">
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script><scriptsrc="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    </head>
    <body> 
        <header>
        <div class="container">
                <div class="logo">
                    <a href="index.html">
                        <img src="images/logo-home.svg" alt="logo topo">
                </div>
            <div class="links">
                <nav>
            <ul>
                <li><a href="index.html">Inicio</a></li>
                <li><a href="sobre.html">Sobre</a></li>
                <li><a href="servicos.html">Serviços</a></li>
                <li><a href="contato.html">Contato</a></li>
            </ul>	  
                </nav>
            </div>
            <div id="myCarousel" class="carousel slide" data-ride="carousel">
                <div class="carousel-inner">
                    <div class="item">
                        <img src="slide3.png" alt="Auto Jet - Serviços Automotivos" style="width:100%; height:524px;">
                    </div>

                    <div class="item active">
                        <img src="slide2.png" alt="Auto Jet - Serviços Automotivos" style="width:100%; height:524px;">
                    </div>

                    <div class="item">
                        <img src="slide.png" alt="Auto Jet - Serviços Automotivos" style="width:100%; height:524px;">
                    </div>
                </div>
                <a class="left carousel-control" href="#myCarousel" data-slide="prev">
                    <span class="glyphicon glyphicon-chevron-left"></span>
                        <span class="sr-only">Anterior</span>
                </a>
                <a class="right carousel-control" href="#myCarousel" data-slide="next">
                    <span class="glyphicon glyphicon-chevron-right"></span>
                        <span class="sr-only">Próxima</span>
                </a>
            </div>
        </div>
        </header>
    </div>
         <main>
              <section class="sobre">    
                    <div class="container">
                        <div class="itens">
                            <div class="imagem">
                                 <img src="images/logo-quem-somos.svg" alt="Logo Quem somos">
                            </div>
                        </div>
                        <div class="textos">
                            <p><strong>A AutoJet®</strong> é uma empresa especializada em serviços automotivos,atuando a mais de 10 anos no ramo de mecanica, com professionais capacitados para atender ao que for preciso para seu veiculo, visando atendimento rapido e efeciente...</p>
        
                            <a href="sobre.html" class="botao medio"> <i class="fa fa-eye" aria-hidden="true"></i> Continue Lendo</a>
                        </div>
                    </div>
              </section>
         </main>
        <footer>
            <div class="logo-rodape">
                 <a href="index.html">
                    <img src="images/logo-rodape.svg" alt="logo-rodape">
                 <a/>
            <p> Todos os Direiros Reservados Auto Jet Serviços Automotivos ® - 2017 </p>
            </div>
        </footer>
    </body>
    </html>
    
asked by anonymous 09.07.2017 / 22:04

1 answer

0

Your slider does not occupy the entire area because it is within a div with a class="container" which does not allow it to occupy the entire area.

<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>Auto Jet - Serviços Automotivoss</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="css/home.css">
    <link rel="stylesheet" href="css/geral.css">
    <link rel="stylesheet" href="css/plugins.css">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script><scriptsrc="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>

<body>
    <header>
        <div class="container">
            <div class="logo">
                <a href="index.html">
                    <img src="images/logo-home.svg" alt="logo topo">
              </a>
            </div>
            <div class="links">
                <nav>
                    <ul>
                        <li><a href="index.html">Inicio</a></li>
                        <li><a href="sobre.html">Sobre</a></li>
                        <li><a href="servicos.html">Serviços</a></li>
                        <li><a href="contato.html">Contato</a></li>
                    </ul>
                </nav>
            </div>
        </div>
        <div id="myCarousel" class="carousel slide" data-ride="carousel">
            <div class="carousel-inner">
                <div class="item">
                    <img src="slide3.png" alt="Auto Jet - Serviços Automotivos" style="width:100%; height:524px;">
                </div>
                <div class="item active">
                    <img src="slide2.png" alt="Auto Jet - Serviços Automotivos" style="width:100%; height:524px;">
                </div>
                <div class="item">
                    <img src="slide.png" alt="Auto Jet - Serviços Automotivos" style="width:100%; height:524px;">
                </div>
            </div>
            <a class="left carousel-control" href="#myCarousel" data-slide="prev">
                <span class="glyphicon glyphicon-chevron-left"></span>
                <span class="sr-only">Anterior</span>
            </a>
            <a class="right carousel-control" href="#myCarousel" data-slide="next">
                <span class="glyphicon glyphicon-chevron-right"></span>
                <span class="sr-only">Próxima</span>
            </a>
        </div>
    </header>
   
    <main>
        <section class="sobre">
            <div class="container">
                <div class="itens">
                    <div class="imagem">
                        <img src="images/logo-quem-somos.svg" alt="Logo Quem somos">
                    </div>
                </div>
                <div class="textos">
                    <p><strong>A AutoJet®</strong> é uma empresa especializada em serviços automotivos,atuando a mais de 10 anos no ramo de mecanica, com professionais capacitados para atender ao que for preciso para seu veiculo, visando atendimento rapido e efeciente...</p>
                    <a href="sobre.html" class="botao medio"> <i class="fa fa-eye" aria-hidden="true"></i> Continue Lendo</a>
                </div>
            </div>
        </section>
    </main>
    <footer>
        <div class="logo-rodape">
            <a href="index.html">
                <img src="images/logo-rodape.svg" alt="logo-rodape">
          </a>
                <p> Todos os Direiros Reservados Auto Jet Serviços Automotivos ® - 2017 </p>
        </div>
    </footer>
</body>

</html>
    
10.07.2017 / 00:22