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 4 Basics (Retired) Building Forms with Bootstrap Custom CSS

Collapsible Component needs to be fix

I added the Collapsible Component for the first part of the Schedule but I see aproblem that to be fix the 9:00am needs to be move all the way to the right side but it shows next to Keynote: Internet of Thinks. How can I fix this issue? This is my code <!DOCTYPE html> <html lang="en"> <head>
<meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>Full Stack Conf</title>

<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">

<link rel="stylesheet" type="text/css" href="css/custom.css">

</head>

<body id="home" data-spy="scroll" data-target=".navbar" data-offset="100">

<!-- navbar -->
<nav class="navbar fixed-top navbar-toggleable-md navbar-inverse bg-primary">           
  <div class="container">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item active">
        <a class="nav-link" href="#home">Home<span class="sr-only">(current)</span></a>
      </li>
      <li class="nav-item">
        <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>
      </li>
    </ul>
    <a class="navbar-brand ml-lg-auto mr-0 hidden-xs-down" href="http://www.teamtreehouse.com">Presented by Treehouse</a>
  </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 Conf</h1>
    <p class="lead">A One-day Conference About All Things JavaScript!</p>

    <div class="btn-group mt-2" role="group" aria-label="Basic example">
      <button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#register">Register Now</button>
      <a class="btn btn-secondary btn-lg" href="#speakers">See Speakers</a>          
    </div>
  </div>
</div>
<!-- /jumbotron -->

<!-- container -->
<div class="container pt-5">

  <!-- about -->
  <div id="about" class="row">

    <div class="col-md-4 push-lg-4">
      <h3 class="mb-4">About Full Stack Conf</h3>
      <img class="mb-3 img-fluid rounded hidden-xs-down" src="img/pdx.jpg" alt="Portland">
        <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-md-4 pull-lg-4">
      <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-4">
      <h3 class="mb-4">What You'll Learn</h3>
        <div class="list-group">
          <a href="#" class="list-group-item"><strong>MongoDB</strong>: NoSQL database</a>
          <a href="#" class="list-group-item"><strong>Angular</strong>: JavaScript framework </a>
          <a href="#" class="list-group-item"><strong>Express</strong>: Framework for Node</a>
          <a href="#" class="list-group-item"><strong>Node.js</strong>: JavaScript environment</a>
          <a href="#" class="list-group-item"><strong>ES2015</strong>: Latest version of JavaScript</a>
          <a href="#" class="list-group-item"><strong>Babel</strong>: JavaScript compiler</a>
        </div>
    </div>

  </div>
  <!-- about -->

  <!-- speakers -->
  <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">
        <img class="card-img-top img-fluid" src="img/angie.png" alt="Card image cap">
        <div class="card-block">
          <h4 class="card-title">Angie McAngular</h4>
          <p class="card-text">Angie 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">
        <img class="card-img-top img-fluid" src="img/nodestradamus.png" alt="Card image cap">
        <div class="card-block">
          <h4 class="card-title">Victor Montero</h4>
          <p class="card-text">Victor 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">
        <img class="card-img-top img-fluid" src="img/geo.png" alt="Card image cap">
        <div class="card-block">
          <h4 class="card-title">Romario de Leon</h4>
          <p class="card-text">Romario is a JavaScript developer working on large-scale applications. He's also a teacher who strives to support students in removing all barriers to learning code.</p>
        </div>
      </div>
    </div>

    <div class="col-md-6 col-lg-4">
      <div class="card">
        <img class="card-img-top img-fluid" src="img/ecma.png" alt="Card image cap">
        <div class="card-block">
          <h4 class="card-title">Katia Avila</h4>
          <p class="card-text">Katia found her passion for computers and programming over 15 years ago. She is excited to introduce people to the wonderful world of JavaScript.</p>
        </div>
      </div>
    </div>

    <div class="col-md-6 col-lg-4">
      <div class="card">
        <img class="card-img-top img-fluid" src="img/jay.png" alt="Card image cap">
        <div class="card-block">            
          <h4 class="card-title">Oscar Camacho</h4>
          <p class="card-text">Oscar 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">
        <img class="card-img-top img-fluid" src="img/json.png" alt="Card image cap">
        <div class="card-block">
          <h4 class="card-title">Daniel Ortiz</h4>
          <p class="card-text">All of his professional life, Daniel has worked with computers online; he is a polyglot programmer and likes using the right tools for the job.</p>
        </div>
      </div>
    </div>

  </div>
  <!-- /speakers -->

  <!-- schedule -->
  <h1 id="schedule" class="display-4 text-center my-5 text-muted">Schedule</h1>

  <ul class="list-group" id="schedule">        

    <li class="list-group-item list-group-item-action flex-column align-items-start">
      <div id="accordion" role="tablist" aria-multiselectable="true">
        <div class="card">
          <div class="card-header" role="tab" id="headingOne">
            <h5 class="mb-0">
              <a data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
                Keynote: Internet of Thinks <span class="badge badge-default badge-pill bg-info px-2 py-2 mt-2">9:00am</span>                    
              </a>
            </h5>                
            <p class="mb-1">Victor Montero</p>              
          </div>
          <div id="collapseOne" class="collapse show" role="tabpanel" aria-labelledby="headingOne">
            <div class="card-block">
              JavaScript is everywhere, on the browser, the server, and now on hardware. Finally The Internet of Things is upon us-and it is powered by JavaScript! In this keynote, Victor Montero discusses how JavaScript can be used on hardware.
            </div>
          </div>
        </div>
      </div>    
    </li>

    <li class="list-group-item list-group-item-action flex-column align-items-start">
      <div class="d-flex w-100 justify-content-between">
        <h5 class="mb-1">Angular Basics</h5>
        <span class="badge badge-default badge-pill bg-info px-2 py-2 mt-2">10:00am</span>
      </div>
      <p class="mb-1">Martha Quezada</p>
    </li>

    <li class="list-group-item list-group-item-action flex-column align-items-start">
      <div class="d-flex w-100 justify-content-between">
        <h5 class="mb-1">Hey, Mongo!</h5>
        <span class="badge badge-default badge-pill bg-info px-2 py-2 mt-2">11:00am</span>
      </div>
      <p class="mb-1">Oscar Camacho</p>
    </li>

    <li class="list-group-item list-group-item-action list-group-item-success flex-column align-items-start">
      <div class="d-flex w-100 justify-content-between">
        <h5 class="mb-1">Lunch</h5>
        <span class="badge badge-default badge-pill bg-info px-2 py-2 mt-2">12:00pm</span>
      </div>
      <p class="mb-1">Free pizza for everyone payed for Manuel Estrada</p>
    </li>

     <li class="list-group-item list-group-item-action flex-column align-items-start">
      <div class="d-flex w-100 justify-content-between">
        <h5 class="mb-1">Introducing ES2015</h5>
        <span class="badge badge-default badge-pill bg-info px-2 py-2 mt-2">1:00pm</span>
      </div>
      <p class="mb-1">Katia Avila</p>
    </li>

    <li class="list-group-item list-group-item-action flex-column align-items-start">
      <div class="d-flex w-100 justify-content-between">
        <h5 class="mb-1">Gettin' MEAN</h5>
        <span class="badge badge-default badge-pill bg-info px-2 py-2 mt-2">2:00pm</span>
      </div>
      <p class="mb-1">Romario de Leon</p>
    </li>

    <li class="list-group-item list-group-item-action flex-column align-items-start">
      <div class="d-flex w-100 justify-content-between">
        <h5 class="mb-1">What's Babel? </h5>
        <span class="badge badge-default badge-pill bg-info px-2 py-2 mt-2">3:00pm</span>
      </div>
      <p class="mb-1">Daniel Ortiz</p>
    </li>
  </ul>
  <!-- /schedule -->

  <!-- callout button -->
  <button type="button" class="btn btn-outline-info btn-lg d-block mx-auto my-5" data-toggle="modal" data-target="#register">Don't miss out, register now</button>
  <!-- /callout button -->

  <!-- signup form -->
  <hr>
  <div class="row py-4 text-muted">
    <div class="col-md-6 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-6 col-xl-5 offset-xl-2">
      <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-7">
      <ul class="nav">
        <li class="nav-item">
          <a class="nav-link active" href="#">Comunity</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="#">Tracks</a>
        </li>
        <li class="nav-item">

          <!-- split button -->
          <div class="btn-group dropup">
            <button type="button" class="btn btn-secondary">Other Confs</button>
            <button type="button" class="btn btn-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>
          <!-- /split button -->

        </li>
      </ul>
    </div>

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

  </div>
  <!-- /footer -->

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

<!--===================================
FORM MODAL
====================================-->
<div id="register" class="modal fade">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header bg-info">
        <h4 class="modal-title">Register for Full Stack Conf</h4>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">

        <!-- registration form -->
        <div class="alert alert-warning alert-dismissible fade show" role="alert">
          <button type="button" class="close" data-dismiss="alert" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
          <strong>Hurry!</strong> Early bird registration ends in two days.
        </div>

        <form>            
          <h5 class="mb-2">Basic Info</h5>

          <div class="form-group">
            <label for="name">Name:</label>
            <input type="text" class="form-control" id="name">
          </div>

          <div class="form-group has-danger">
            <label for="mail" class="form-control-label pl-0">Email:</label>
            <input type="email" class="form-control form-control-danger" id="mail">
          </div>

          <div class="form-group">
            <label for="role">Job Role:</label>
            <select class="custom-select form-control" id="role" name="user_role">
              <option value="full stack js developer">Full Stack JavaScript Developer</option>
              <option value="front end developer">Front End Developer</option>
              <option value="back end developer">Back End Developer</option>
              <option value="designer">Designer</option>          
              <option value="student">Student</option> 
            </select>
          </div>

          <hr class="my-2">
          <h4 class="mb-2">Which Topics Interest You Most?</h4>

          <div class="form-group">

              <div class="form-check">                  
                <label class="custom-control custom-checkbox">
                  <input type="checkbox" class="custom-control-input">
                  <span class="custom-control-indicator"></span>
                  <span class="custom-control-description">JavaScript Frameworks</span>
                </label>
              </div>

              <div class="form-check">
                <label class="custom-control custom-checkbox">
                  <input type="checkbox" class="custom-control-input">
                  <span class="custom-control-indicator"></span>
                  <span class="custom-control-description">JavaScript Libraries</span>
                </label>
              </div>

              <div class="form-check">
                <label class="custom-control custom-checkbox">
                  <input type="checkbox" class="custom-control-input">
                  <span class="custom-control-indicator"></span>
                  <span class="custom-control-description">Node.js</span>
                </label>
              </div>

              <div class="form-check">
                <label class="custom-control custom-checkbox">
                  <input type="checkbox" class="custom-control-input">
                  <span class="custom-control-indicator"></span>
                  <span class="custom-control-description">Build Tools</span>
                </label>
              </div>

              <div class="form-check">
                <label class="custom-control custom-checkbox">
                  <input type="checkbox" class="custom-control-input">
                  <span class="custom-control-indicator"></span>
                  <span class="custom-control-description">ES2015</span>
                </label>                  
              </div>

              <hr class="mb-2">
              <h4 class="mb-2">Payment Info</h4>

              <div class="row">

                <div class="col-lg-6 form-group has-success">
                  <label class="form-control-label pl-0" for="cc-num">Card Number:</label>
                  <input class="form-control form-control-success" id="cc-num" type="text">
                </div>

                <div class="col-lg-3 form-group">
                  <label for="zip">Zip Code:</label>
                  <input class="form-control" id="zip" type="text">
                </div>

                <div class="col-lg-3 form-group">
                  <label for="cvv">CVV:</label>
                  <input class="form-control" id="cvv" type="text">
                </div>
              </div>

              <div class="row">
                <label class="col-lg-12">Expiration Date:</label>

                <div class="col-lg-8 form-group">
                  <select class="custom-select form-control" id="exp-month">
                    <option value="1">January</option>
                    <option value="2">February</option>
                    <option value="3">March</option>
                    <option value="4">April</option>
                    <option value="5">May</option>
                    <option value="6">June</option>
                    <option value="7">July</option>
                    <option value="8">August</option>
                    <option value="9">September</option>
                    <option value="10">October</option>
                    <option value="11">November</option> 
                    <option value="12">December</option>                           
                  </select> 
                </div>

                <div class="col-lg-4 form-group">
                  <select class="custom-select" id="exp-year">
                    <option value="2017">2017</option>
                    <option value="2018">2018</option>
                    <option value="2019">2019</option>
                    <option value="2020">2020</option>
                    <option value="2021">2021</option>
                    <option value="2022">2022</option>
                    <option value="2023">2023</option>
                    <option value="2024">2024</option>
                    <option value="2025">2025</option>
                    <option value="2026">2026</option>                                            
                  </select>
                </div>
              </div>

              <hr class="mb-2">
              <button type="submit" class="btn btn-primary btn-lg">Register</button>

          </div>

        </form>
        <!-- /registration form -->

      </div>     
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<!--===================================
/FORM MODAL
====================================-->

<!-- jQuery first, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.1.1.slim.min.js" integrity="sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n" crossorigin="anonymous">      
</script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous">      
</script>

<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" crossorigin="anonymous">      
</script>
<!-- /jQuery first, then Bootstrap JS -->

</body> </html>

2 Answers

Tris this method, hope it works. Also, don't forget to download the avatar from project files.

index.html

      <ul class="list-group" id="schedule">   
        <li class="list-group-item list-group-item-action flex-column align-items-start">
          <div class="media d-flex w-100 justify-content-between">
            <img class="d-flex mr-3 float-left" src="img/avatar-nodestradamus.png" alt="nodestradamus image">
              <div class="media-body">  
                <div class="d-flex w-100 justify-content-between">
                  <a data-toggle="collapse" aria-expanded="false" aria-controls="collapseExample" href="#collapseExample">    
                      <h5 class="mb-1">Keynote: Internet of Things</h5>
                  </a>  
                  <span class="badge badge-default badge-pill bg-info px-2 py-2">09:00am</span>
                </div>  
                <p class="mb-3">NodeStradamus</p>
                <div class="collapse" id="collapseExample">
                  <div class="card-block">
                    JavaScript is everywhere, on browser, the server and now on hardware. Finally, the Internet of Things is upon us - and it is powered by JavaScript!
                  </div>
                </div>
              </div>                          
          </div>            
        </li>

custom.css

ul li img {
  border-radius: 50%;
  width: 50px;
  height: 50px;
  margin-right: 15px;
}

ul li a:hover, a:visited, a:active, a:link {
  text-decoration: none;
  color: #292b2c;
}

ul li .card-block {
  padding-left: 0;
  border-top: 1px solid rgba(0,0,0,.125);
}
Abinet Kenore
Abinet Kenore
10,082 Points

There is no need to fix the whole code. simple swap the index.html of start project to final project and viceversa , then add the custom.css to the index.html of your final project after you swaped. That worked for me simply.