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 Bootstrap Basics Using Bootstrap Components Displaying Content with Cards

Ali Billow
Ali Billow
2,819 Points

I have a problem with the column padding and layout

With the first two speaker columns their is no padding in between them I also cannot figure out why the columns are not equal size. In short, I want even padding between all of the speakers and equal sized boxes.

This is [The Site](file:///Users/alibillow/Desktop/Bootstrap/index4.html)

and this is my code so far,

<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Full Stack Conf</title>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
  </head>
  <body>
    <!-- navbar -->
    <nav class="navbar navbar-expand-lg navbar-light bg-light fixed-top">
       <div class="container">
        <a class="navbar-brand order-1 mr-0" href="https://www.teamtreehouse.com" target="_blank">Presented by Treehouse</a>
         <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="navbarNav">
      <ul class="navbar-nav">
        <li class="nav-item">
          <a class="nav-link" href="#home">Home <span class="sr-only">(current)</span></a>
        </li>
        <li class="nav-item">
        </li>
          <a class="nav-link" href="#about">About</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="#speakers">Speakers</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="#schedule">Schedule</a>
      </ul>
    </div>
  </nav>
    <!-- /navbar -->

<!-- jumbotron -->

    <div class="jumbotron jumbotron-fluid bg-info text-white">
  <div class="container text-sm-center pt-5">
    <h1 class="display-2">Full Stack Conference</h1>
    <p class="lead">A One Day Conference About All Things Javascript</p>
      <div class="btn-group mt-4" role="group" aria-label="callout buttons">
    <a  class="btn btn-dark btn-large">Register Now</a>
    <a  class="btn btn-secondary" href="#speakers">See Speakers</a>

  </div>
  </div>
</div>


<!-- /jubotron -->

      <div class="container pt-4"> 
        <!-- about  -->
    <div class="row">
      <div class="col-lg order-lg-2 ">
        <h3 class="mb-4">About Full Stack Conf</h3>
        <img class="mb-4 img-fluid rounded d-none d-sm-block" src="pdx.jpg">
          <p>The beautiful city of Portland, Oregon will be the host city for Full Stack Conf!</p>
          <p>Explore the future of JavaScript with a lineup of industry professionals. Discover new techniques to advance your career as a web developer.</p>
      </div>
      <div class="col-lg order-lg-1">
          <h3 class="mb-4">Expert Speakers</h3>
          <p>Our expert speaker lineup was just announced, so don't wait too long before grabbing your tickets!</p>
          <p>Want to meet the international JavaScript community and share skills with some of the world's top experts, hackers, and makers? Be the first to know what to expect for the future of JavaScript.</p>
          <p>Full Stack Conf is committed to being inclusive and welcoming for everyone. We look forward to another intensive day of learning and sharing.</p>     
        </div>
      <div class="col-lg order-lg-3">
        <h3 class="mb-4">What You'll Learn</h3>
        <ul>
          <li><strong>MongoDB</strong>: NoSQL database</li>
          <li><strong>Express</strong>: Framework for Node</li>
          <li><strong>React</strong>: JavaScript library</li>
          <li><strong>Node.js</strong>: JavaScript environment</li>
          <li><strong>ES2015</strong>: Latest version of JavaScript</li>
          <li><strong>Babel</strong>: JavaScript compiler</li>
        </ul>
      </div>
    </div>  
    <!-- /about -->

    <!-- Speakers -->
      <h1 id="speakers" class="display-4 text-center my-4 text-muted">Speakers</h1>
        <div class="row">

            <div class="col-md-6 col-lg-4">
            <div class="card mb-3">
             <img class="card-img-top" src="vivianne.png" alt="Ecma">
             <div class="card-body">
                <h4 class="card-title">Vivianne Mcvue</h4>
                <p class="card-text text-center">Vivianne is a Web deveoper and teacher who is passionate about building scalable, data-driven web apps, especially ones that address old problems with new tech!</p>
                </div>
              </div>
            </div>
            <div class="card-deck"></div>

            <div class="col-md-6 col-lg-4">
            <div class="card mb-3">
             <img class="card-img-top" src="nodestradamus.png" alt="Ecma">
             <div class="card-body">
                <h5 class="card-title">Nodestradamus</h5>
                <p class="card-text text-center">Nodestra is a software engineer and philosopher trying to leave the world better than he found it. He codes for non-profits, e-commerce and large-scale web apps.</p>
                   </div>
                  </div>
                </div>

            <div class="col-md-6 col-lg-4">
            <div class="card mb-3">
            <img class="card-img-top" src="robbie.png" alt="Robbie">
            <div class="card-body">
              <h4 class="card-title">Robbie Redux</h4>
              <p class="card-text">Robbie is a JavaScript developer working on large-scale applications. He's also a teacher who strives to support students in removing barriers to learning code.</p>
                </div>
               </div>
             </div>

            <div class="col-md-6 col-lg-4">
            <div class="card mb-3">
             <img class="card-img-top" src="ecma.png" alt="Ecma">
             <div class="card-body">
              <h4 class="card-title">Ecma Scriptnstuff</h4>
              <p class="card-text">Ecma found her passion for programming and teaching over 15 years ago. She is excited to introduce you to all of the wonders of JavaScript.</p>
                </div>
               </div>
            </div>

            <div class="col-md-6 col-lg-4">
            <div class="card mb-3">
            <div class="card-body">
              <h4 class="card-title">Jay Query</h4>
              <img class="card-img-top" src="jay.png" alt="Jay">
              <p class="card-text">Jay is a developer, author of CSS: The Missing Manual, JavaScript &amp; jQuery: The Missing Manual, and web development teacher.</p>
                </div>
               </div>
            </div>

            <div class="col-md-6 col-lg-4">
            <div class="card mb-3">
            <div class="card-body">
              <h4 class="card-title">Json Babel</h4>
              <img class="card-img-top" src="Json.png" alt="Json">
              <p class="card-text">All of his professional life, Json has worked with computers online; he is a polyglot programmer and likes using the right tools for the job.</p>
             </div>
            </div>
          </div>

    <!-- /speakers -->

    <!-- schedule -->
      <h1 class="display-4 text-center my-5 text-muted">Schedule</h1>
      [conference schedule ges here]
      <!-- /schedule-->

      <!-- callout button -->
      <button type="button" class="btn btn-outline-info btn-lg d-block mx-auto my-5">Don't Miss Out, Register Now</button>

      <!-- signup form -->
      <hr>
      <div class="row py-4 text-muted">
        <div class="col-md col-xl-5">
          <p><strong>About Treehouse</strong></p>
          <p>Treehouse brings affordable technology education to people everywhere to help them achieve their dreams and change the world.</p>
        </div>
        <div class="col-md col-xl-5 ml-auto">
          <p><strong>Stay up-to-date on Full Stack Conf</strong></p>
          <div class="input-group">
            <input type="text" class="form-control" placeholder="Email">
            <span class="input-group-btn">
              <button class="btn btn-primary" type="button">Sign up</button>
            </span>
          </div>
        </div>
      </div>
      <hr>
<!-- /signup form -->

<!-- footer -->

    <div class="row py-3">
      <div class="col-md-0"> </div>
          <ul class="nav">
            <li class="nav-item">
              <a class="nav-link" href="#">Community</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="#">Tracks</a>
            </li>
            <li class="nav-item">
            <div class="btn-group dropup">
              <button type="button" class="btn btn-outine-secondary">Other Conf</button>
              <button type="button" class="btn btn-outine-secondary dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                <span class="sr-only">Toggle Dropdown</span>
              </button>
              <div class="dropdown-menu">
                <a class="dropdown-item" href="#">CSS conf</a>
                <a class="dropdown-item" href="#">Python Conf</a>
                <a class="dropdown-item" href="#">Java Conf</a>
                <a class="dropdown-item" href="#">Swift Conf</a>
              </div>
            </div>
            </li>

          </ul>
      <div class="col-md text-md-right">
        <small>&copy; 2017 Full Stack Conf &amp; Treehouse</small>
      </div>
    </div>

<!-- /footer -->


  </div> <!-- /.container -->

    <!-- Optional JavaScript -->
    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
    <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"></script>
  </body>
</html>

thank you in advance!!

Ali Billow
Ali Billow
2,819 Points

also the formatting of the photos and names of the last two do not match up with the other photos and names

1 Answer

I noticed some differences. You can use this to check your code:

<h1 id="speakers" class="display-4 text-center my-5 text-muted">Speakers</h1> <div class="row">

    <div class="col-md-6 col-lg-4">
      <div class="card mb-3">
        <img class="card-img-top" src="img/vivianne.png" alt="Vivianne">
        <div class="card-body">
          <h4 class="card-title">Vivianne McVue</h4>
          <p class="card-text">Vivianne is a web developer and teacher who is passionate about building scalable, data-driven web apps, especially ones that address old problems with new tech!</p>
        </div>
      </div>
    </div>

    <div class="col-md-6 col-lg-4">
      <div class="card mb-3">
        <img class="card-img-top" src="img/nodestradamus.png" alt="NodeStradamus">
        <div class="card-body">
          <h4 class="card-title">NodeStradamus</h4>
          <p class="card-text">"NodeStra" is a software engineer and philosopher trying to leave the world better than he found it. He codes for non-profits, eCommerce, and large-scale web apps.</p>
        </div>
      </div>
    </div>

    <div class="col-md-6 col-lg-4">
      <div class="card mb-3">
        <img class="card-img-top" src="img/robbie.png" alt="Robbie Redux">
        <div class="card-body">
          <h4 class="card-title">Robbie Redux</h4>
          <p class="card-text">Robbie is a JavaScript developer working on large-scale applications. He's also a teacher who strives to support students in removing barriers to learning code.</p>
        </div>
      </div>
    </div>

    <div class="col-md-6 col-lg-4">
      <div class="card mb-3">
        <img class="card-img-top" src="img/ecma.png" alt="Ecma Scriptnstuff">
        <div class="card-body">
          <h4 class="card-title">Ecma Scriptnstuff</h4>
          <p class="card-text">Ecma found her passion for programming and teaching over 15 years ago. She is excited to introduce you to all of the wonders of JavaScript.</p>
        </div>
      </div>
    </div>

    <div class="col-md-6 col-lg-4">
      <div class="card mb-3">
        <img class="card-img-top" src="img/jay.png" alt="Jay Query">
        <div class="card-body">
          <h4 class="card-title">Jay Query</h4>
          <p class="card-text">Jay is a developer, author of CSS: The Missing Manual, JavaScript &amp; jQuery: The Missing Manual, and web development teacher.</p>
        </div>
      </div>
    </div>

    <div class="col-md-6 col-lg-4">
      <div class="card mb-3">
        <img class="card-img-top" src="img/json.png" alt="Json Babel">
        <div class="card-body">
          <h4 class="card-title">Json Babel</h4>
          <p class="card-text">All of his professional life, Json has worked with computers online; he is a polyglot programmer and likes using the right tools for the job.</p>
        </div>
      </div>
    </div>

  </div>

Good luck!