"css boxes in carousel"
Bootstrap 3.3.0 Snippet by mubashirsiddique

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <div class="col-md-12"> <div id="myCarousel" class="carousel slide" data-ride="carousel"> <!-- 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> </ol> <!-- Wrapper for slides --> <div class="carousel-inner" role="listbox"> <div class="item"> <div class="menubox">Radiator</div> <!--<img src="img_chania.jpg" alt="Chania">--> </div> <div class="item"> <div class="menubox">Radiator</div> <!--<img src="img_chania2.jpg" alt="Chania">--> </div> <div class="item"> <div class="menubox">Radiator</div> <!--<img src="img_flower.jpg" alt="Flower">--> </div> <div class="item"> <div class="menubox">Radiator</div> <!--<img src="img_flower2.jpg" alt="Flower">--> </div> </div> <!-- 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> <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> </a> </div> </div> </div> </div>
@import "//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css"; .menubox { text-align: center; position: relative; border: 1px solid #e0e0e0; height:50px width:50px; background-color: #02a419; /* IE9, iOS 3.2+ */ background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9Ij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3ZzZ2cpIiAvPjwvc3ZnPg==), -webkit-gradient(radial, center center, 0, center center, 186,color-stop(0, rgb(0, 187, 50)),color-stop(1, rgb(3, 141, 0))); /* Android 2.3 */ background-image: -webkit-repeating-radial-gradient(center center, ellipse farthest-corner,rgb(0, 187, 50) 0%,rgb(3, 141, 0) 100%); /* IE10+ */ background-image: repeating-radial-gradient(ellipse farthest-corner at center center,rgb(0, 187, 50) 0%,rgb(3, 141, 0) 100%); background-image: -ms-repeating-radial-gradient(center center, ellipse farthest-corner,rgb(0, 187, 50) 0%,rgb(3, 141, 0) 100%); } .carousel-inner > .item > img, .carousel-inner > .item > a > img { width: 70%; margin: auto; } .gradient { background-color: #02a419; /* IE9, iOS 3.2+ */ background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAxIDEiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPjxyYWRpYWxHcmFkaWVudCBpZD0idnNnZyIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIGN4PSI1MCUiIGN5PSI1MCUiIHI9IjcwLjcxMDY3ODExODY1NDc2JSI+PHN0b3Agc3RvcC1jb2xvcj0iIzAwYmIzMiIgc3RvcC1vcGFjaXR5PSIxIiBvZmZzZXQ9IjAiLz48c3RvcCBzdG9wLWNvbG9yPSIjMDM4ZDAwIiBzdG9wLW9wYWNpdHk9IjEiIG9mZnNldD0iMSIvPjwvcmFkaWFsR3JhZGllbnQ+PHJlY3QgeD0iLTUwIiB5PSItNTAiIHdpZHRoPSIxMDEiIGhlaWdodD0iMTAxIiBmaWxsPSJ1cmwoI3ZzZ2cpIiAvPjwvc3ZnPg==); /* Android 2.3- hack (needed for the actual radial gradient) */ background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAxIDEiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPjxyYWRpYWxHcmFkaWVudCBpZD0idnNnZyIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIGN4PSI1MCUiIGN5PSI1MCUiIHI9IjcwLjcxMDY3ODExODY1NDc2JSI+PHN0b3Agc3RvcC1jb2xvcj0iIzAwYmIzMiIgc3RvcC1vcGFjaXR5PSIxIiBvZmZzZXQ9IjAiLz48c3RvcCBzdG9wLWNvbG9yPSIjMDM4ZDAwIiBzdG9wLW9wYWNpdHk9IjEiIG9mZnNldD0iMSIvPjwvcmFkaWFsR3JhZGllbnQ+PHJlY3QgeD0iLTUwIiB5PSItNTAiIHdpZHRoPSIxMDEiIGhlaWdodD0iMTAxIiBmaWxsPSJ1cmwoI3ZzZ2cpIiAvPjwvc3ZnPg==), -webkit-gradient(radial, center center, 0, center center, 186,color-stop(0, rgb(0, 187, 50)),color-stop(1, rgb(3, 141, 0))); /* Android 2.3 */ background-image: -webkit-repeating-radial-gradient(center center, ellipse farthest-corner,rgb(0, 187, 50) 0%,rgb(3, 141, 0) 100%); /* IE10+ */ background-image: repeating-radial-gradient(ellipse farthest-corner at center center,rgb(0, 187, 50) 0%,rgb(3, 141, 0) 100%); background-image: -ms-repeating-radial-gradient(center center, ellipse farthest-corner,rgb(0, 187, 50) 0%,rgb(3, 141, 0) 100%); } /* IE8- CSS hack */ @media \0screen\,screen\9 { .gradient { filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff00bb32",endColorstr="#ff038d00",GradientType=0); } }

Related: See More


Questions / Comments: