The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Design Decreasing height and width of carousel bootstrap

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #245098

    I’m trying to decrease the height and width of carousel, looking at the other answers I think I’m close to achieving it however it doesn’t look like as I want it to look,it looks something like this

    How can I get rid of the annoying white space?

    Here is the html code

    <!DOCTYPE html>
    <html lang="en">
        <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 -->
        <!-- Bootstrap -->
        <link href="css/bootstrap.min.css" rel="stylesheet">
       <link rel="stylesheet" type="text/css" href="css/flower.css">
     <div class=" container navbar navbar-default navbar-fixed-top ">
          <!-- <div class="container"> -->
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              <a class="navbar-brand" href="#">Logo</a>
            <div class="collapse navbar-collapse">
              <ul class="nav navbar-nav navbar-right">
                <li><a href="#my account">My Account</a></li>
                <li><a href="#cart">Cart <span class="glyphicon glyphicon-shopping-cart"></span></a></li>
            </div><!--/.nav-collapse -->
      <!-- </div> -->
    <!-- <div id="myCarousel" class="carousel slide space" data-ride="carousel" style="width: 600px!important;" > -->
    <div align="middle" id="myCarousel" class="carousel slide space" data-ride="carousel" style="width: 600px!important;" >
      <!-- Indicators -->
      <ol class="carousel-indicators">
        <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
        <li data-target="#myCarousel" data-slide-to="1"></li>
        <li data-target="#myCarousel" data-slide-to="2"></li>
        <li data-target="#myCarousel" data-slide-to="3"></li>
      <!-- Wrapper for slides -->
      <div class="carousel-inner" role="listbox">
        <div class="item active">
          <img src="" alt="Chania" style="height:380px">
        <div class="item">
          <img src="pic/pic1.jpg" alt="Chania" style="height:380px" >
        <div class="item">
          <img src="pic/pic2.jpg" alt="Flower" style="height:380px">
        <div class="item">
          <img src="pic/pic3.jpg" alt="Flower" style="height:380px">
      <!-- Left and right controls -->
      <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">‹
        <!-- <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
        <span class="sr-only">Previous</span> -->
      <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">›
       <!--  <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
        <span class="sr-only">Next</span> -->
      <div class="row">
      <div class="col-xs-6 col-md-3">
        <a href="#" class="thumbnail">
          <img src="" alt="...">
      <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
        <script src=""></script>
        <!-- Include all compiled plugins (below), or include individual files as needed -->
        <script src="js/bootstrap.min.js"></script>

    The CSS file

    html {
    background: url(../pic/backgrounf.jpg) no-repeat center fixed;
    background-size: cover;

    /*@media (min-width: 1200px) {
    .navbar {
    max-width: 970px;

    @media (min-width: 1200px) {
    max-width: 970px;

    /background-color: #F08080;/
    /opacity: 0.5;/
    color: black;

    margin-top: 58px;
    margin-left: 154px;


Viewing 1 post (of 1 total)
  • The forum ‘Design’ is closed to new topics and replies.