html - Bootstrap Col-sm- take effects in Medium devices -
i have code class <div class="col-md-8 col-sm-8 col-sm-offset-2" id="wrapper-middle">
problem when use medium devices
class col-sm-8 col-sm-offset-2
take effects , when remove class col-sm-8 col-sm-offset-2
code work correctly .
this code bellow :
<div class="row"> <div class="col-md-8 col-sm-8 col-sm-offset-2" id="wrapper-middle"> <div id="carousel-generic" class="carousel slide" data-ride="carousel"> <!-- indicators --> <ol class="carousel-indicators"> <li data-target="#carousel-generic" data-slide-to="0" class="active"></li> <li data-target="#carousel-generic" data-slide-to="1"></li> <li data-target="#carousel-generic" data-slide-to="2"></li> </ol> <!-- wrapper slides --> <div class="carousel-inner" role="listbox"> <div class="item active"> <img src="images/carousel/slide1.png" alt="error picture"> </div> <div class="item"> <img src="images/carousel/slide1.png" alt="error picture"> </div> <div class="item"> <img src="images/carousel/slide1.png" alt="error picture"> </div> </div> <!-- controls --> <a class="left carousel-control" href="#carousel-generic" 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="#carousel-generic" role="button" data-slide="next"> <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> <span class="sr-only">next</span> </a> </div> <div id="words"> <header> <h2><u>lipsum</u></h2> </header> <article> <div> <p> lorem ipsum dummy text of printing , typesetting industry. lorem ipsum has been industry's standard dummy text ever since 1500s, when unknown printer took galley of type , scrambled make type specimen book. has survived not 5 centuries, leap electronic typesetting, remaining unchanged. popularised in 1960s release of letraset sheets containing lorem ipsum passages, , more desktop publishing software aldus pagemaker including versions of lorem ipsum. </p> </div> </article> </div> </div>
bootstrap col-
classes take effect @ screen sizes greater size specified -- i.e. col-sm-8
used @ sm
, md
, , lg
unless overridden.
Comments
Post a Comment