Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bootstrap hidden-xs not working

I just found out about hidden-xs, hidden-sm etc, so am trying it out for the first time..

How come this doesn't hide the review div on any screen size?

<div class="row hidden-sm">
   <div class="col-xs-12">
      <result-reviews [result]='selectedResult?.result.result'></result-reviews>
   </div>
</div>

Here is more of my code:

<div class="modal-body">
   <div class="container-fluid">
      <div class="row">
         <div class="col-lg-7">
            <div class="row">
               <div id="image-div" class="col-sm-5 col-lg-5">
                  <result-image [result]='selectedResult?.result.result'></result-image>
               </div>
               <div class="col-sm-7 col-lg-7">
                  <result-attributes [result]='selectedResult?.result.result'></result-attributes>
               </div>
            </div>
            <div class="row hidden-sm">
               <div class="col-xs-12">
                  <result-reviews [result]='selectedResult?.result.result'></result-reviews>
               </div>
            </div>
         </div>
         <div class="col-lg-5">
            <div id="shops-section">
               <div id="map" #map></div>
               <ul>
                  <li *ngFor="let shop of selectedResult?.result.result.nearbyShops">
                     <div class="shop-details">
                        {{ shop.name }}
                     </div>
                  </li>
               </ul>
            </div>
         </div>
      </div>
   </div>
</div>
like image 370
BeniaminoBaggins Avatar asked Oct 14 '16 22:10

BeniaminoBaggins


2 Answers

Which version of bootstrap are you using? In the bootstrap 4 alpha the hidden-xs classes (and sm, md, ...) have been replaced by hidden-xs-up or hidden-xs-down as explained here: http://v4-alpha.getbootstrap.com/layout/responsive-utilities/

like image 94
Christoph Muth Avatar answered Oct 11 '22 22:10

Christoph Muth


It works with d-none d-sm-block! Try this if you want to hide the division.

For reference, this is the link Getbootstrap Migration

like image 29
Anushka Panagar Avatar answered Oct 11 '22 23:10

Anushka Panagar