Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

Can't see the footer

<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- The above 3 meta tags must come first in the head; any other head content must come after these tags --> <title>Bootstrap 101 Template</title>

<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/custom.css">

</head> <body> <div class="row header"> <div class="col-md12"> <div class="col-md-8">Sirket isim</div> <div class="col-md-1">Anasayfa</div> <div class="col-md-1">Hakkimizda</div> <div class="col-md-1">Koleksiyon</div> <div class="col-md-1">Iletisim</div> </div> </div> <div id="carousel-example-generic" class="carousel slide" data-ride="carousel"> <!-- Indicators --> <ol class="carousel-indicators"> <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li> <li data-target="#carousel-example-generic" data-slide-to="1"></li> <li data-target="#carousel-example-generic" data-slide-to="2"></li> </ol>

<!-- Wrapper for slides --> <div class="carousel-inner"> <div class="item active"> <img src="http://placehold.it/1920x1080" alt="..."> <div class="carousel-caption"> <h3>Caption Text</h3> </div> </div> <div class="item"> <img src="http://placehold.it/1920x1080" alt="..."> <div class="carousel-caption"> <h3>Caption Text</h3> </div> </div> <div class="item"> <img src="http://placehold.it/1920x1080 " alt="..."> <div class="carousel-caption"> <h3>Caption Text</h3> </div> </div> </div>

        <!-- Controls -->
      <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
        <span class="glyphicon glyphicon-chevron-left"></span>
      </a>
      <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
        <span class="glyphicon glyphicon-chevron-right"></span>
      </a>
</div> <!-- Carousel -->

<div class="row footer">
    <div class="col-md-12">
    </div>
</div>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>

<script src="js/bootstrap.min.js"></script>

</body>

</html>

I already created footer as you can see. Also I put some background value there but I can't even see the footer. Are there anyone who can help me about this?

What is your css like?

I think you need to add height or content to your footer to make it visible.

Hope this helps!

1 Answer

It looks like you added div with the class of footer, not a real footer. Here is an example of a footer from a site I am working on. This is very simple. I am not done building it out yet. I also deleted all of the JavaScript between the footer close and body close.

             <footer>
                   <p>&copy; Sunset Chiropractic Clinic 2015</p>
             </footer>

    </body>
</html>

.footer { background-color:#AAAAAA; }