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

Eoan O'Dea
Eoan O'Dea
2,905 Points

Does anyone know how to resize a bootstrap carousel?

I've been trying to resize my carousel to cover the full length of the page, whilst keeping everything at an 80% width, here's an example - https://www.exhibit.ie/ Here's my code:

<!-- carousel -->

<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> <li data-target="#carousel-example-generic" data-slide-to="3"></li> <li data-target="#carousel-example-generic" data-slide-to="4"></li> <li data-target="#carousel-example-generic" data-slide-to="5"></li> <li data-target="#carousel-example-generic" data-slide-to="6"></li> </ol>

  <!-- Wrapper for slides -->
  <div class="carousel-inner">
    <div class="item active">
      <img src="img/carousel/carousel-1.jpg" alt="..." class="image">
      <div class="carousel-caption">

      </div>
    </div>
    <div class="item">
      <img src="img/carousel/carousel-2.jpg" alt="..." class="image">
      <div class="carousel-caption">

      </div>
    </div>
    <div class="item">
      <img src="img/carousel/carousel-3.jpg" alt="..." class="image">
      <div class="carousel-caption">

      </div>
    </div>
     <div class="item">
      <img src="img/carousel/carousel-4.jpg" alt="..." class="image">
      <div class="carousel-caption">

      </div>
    </div>
     <div class="item">
      <img src="img/carousel/carousel-5.jpg" alt="..." class="image">
      <div class="carousel-caption">

      </div>
    </div>
    <div class="item">
      <img src="img/carousel/carousel-6.jpg" alt="..." class="image">
      <div class="carousel-caption">

      </div>
    </div>
     <div class="item">
      <img src="img/carousel/carousel-7.jpg" alt="..." class="image">
      <div class="carousel-caption">

      </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>