I would like to know if it is possible to make a group of cols-*
stay as carouel / slider only when less than 750px.
First of all, for those who do not understand bootstrap, both grids and carousel are native parts of the bootstrap, so I would like to combine these two:
So the question here is about bootstrap components. Currently it works like this:
-
Screens greater than or equal to 750px wide:
Screenssmallerthan750pxwidebreakitems,thisdesignisimitatingacellphonescreen(notdrawingverywell):
HoweverIwouldliketoknowifitispossibletotransformitintothis(whensmallerthan750px),thisdrawingisimitatingamobilescreen,thewhitespaceisbecauseithasnomorehtmlelementsandwouldbeabasicexample,butinafullpagespacewouldnotappear:
Thatis,insmallscreensIwouldliketomakecols-
intoaslider,sothesecolumnswouldcontinuehorizontalinsteadofbreaking,IrememberifandIdonotmistaketohavealreadyseenasitelikethis,IwasinandIcouldnotparsethecode.
InmycurrentcodeIusetheclasscol-sm-3
sothatwhenthescreenissmallerthan750pxtheitemsarenotsidebyside(thebasicconceptoftheboostrapgridsystem),likethis:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script><!--LatestcompiledandminifiedCSS--><linkrel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<section>
<h2 class="section-heading text-center">Lançamentos</h2>
<hr class="primary">
<div class="row nospace">
<div class="col-sm-3">
<div class="item">
<img src="images/produto1.jpg" class="img-responsive">
<h3>Produto</h3>
</div>
</div>
<div class="col-sm-3">
<div class="item">
<img src="images/produto2.jpg" class="img-responsive">
<h3>Produto</h3>
</div>
</div>
<div class="col-sm-3">
<div class="item">
<img src="images/produto3.jpg" class="img-responsive">
<h3>Produto</h3>
</div>
</div>
<div class="col-sm-3">
<div class="item">
<img src="images/produto4.jpg" class="img-responsive">
<h3>Produto</h3>
</div>
</div>
</div>
</section>