title: Bootstrap cards alignment issue on small screen devices
body: <p>I have 3 card decks each with 3 cards,on large screen everything is fine and they all show up quite good .However in small screens the card deck still shows 3 cards in each row with similar behaviour ,where as i have given col-12 col-xs-12 col-md-12 for each card.I have tested the code on google chrome extension for responsive screens and in that i get one card per row on mobile devices ,however when i deploy the website and test it on actual phone i get 3 cards in a row,so users will have to zoom to read the content .</p>
  
  <p>This is my code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="Places"&gt;
              &lt;h2 class="text-primary"&gt;Tourist places In Salalah&lt;/h2&gt;
              &lt;br /&gt;
  
              &lt;div class="card-deck"&gt;
                  &lt;div class="card text-white bg-primary mb-3 animated col-12 col-xs-12 col-md-12 col-lg-4 col-xl-4"  id="card1"&gt;
                      &lt;div class="card-header"&gt;Salalah Museum&lt;/div&gt;
                      &lt;div class="card-body"&gt;
                          &lt;!--&lt;h4 class="card-title"&gt;Info card title&lt;/h4&gt;--&gt;
                          &lt;p class="card-text"&gt;This museum houses an eclectic collection, with sections devoted to regional geology and history. There is also a permanent display of Wilfred Thesiger's photographs.&lt;a href="https://en.wikipedia.org/wiki/Salalah" target="_blank" style="color: white;"&gt;Wikipedia&lt;/a&gt;&lt;/p&gt;
                          &lt;br /&gt;
                          &lt;h6 class="card-title"&gt;Book a Tour:&lt;a href="tel:0096899143222" style="color: white;"&gt;00968 -99143222&lt;/a&gt; &lt;/h6&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
  
  
                  &lt;div class="card text-white bg-primary mb-3 animated col-12 col-xs-12 col-md-12 col-lg-4 col-xl-4"  id="card2"&gt;
                      &lt;div class="card-header"&gt;Burj an-Nadha&lt;/div&gt;
                      &lt;div class="card-body"&gt;
                          &lt;!--&lt;h4 class="card-title"&gt;Light card title&lt;/h4&gt;--&gt;
                          &lt;p class="card-text"&gt;The clocktower may not be a sky-scraper but it is indeed the icon of Salalah, featured in the coat of arms of Dhofar Governate. The tower looks stunning during nights due to the colorful light display.&lt;a href="https://en.wikipedia.org/wiki/Salalah" target="_blank" style="color: white;"&gt;Wikipedia&lt;/a&gt;&lt;/p&gt;
  
                          &lt;h6 class="card-title"&gt;Book a Tour:&lt;a href="tel:0096899143222" style="color: white;"&gt;00968 -99143222&lt;/a&gt;&lt;/h6&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
  
  
  
                  &lt;div class="card text-white bg-primary mb-3 animated col-12 col-xs-12 col-md-12 col-lg-4 col-xl-4"  id="card3"&gt;
                      &lt;div class="card-header"&gt;Tomb of Nabi Umran&lt;/div&gt;
                      &lt;div class="card-body"&gt;
                          &lt;!--&lt;h4 class="card-title"&gt;Dark card title&lt;/h4&gt;--&gt;
                          &lt;p class="card-text"&gt;Umran (Imran) was a local Arab prophet, believed by some to have been the father of the Virgin Mary, and believed by others to have been the father of Moses. The sarcophagus is 33 m long.&lt;a href="https://en.wikipedia.org/wiki/Salalah" target="_blank" style="color: white;"&gt;Wikipedia&lt;/a&gt; &lt;/p&gt;
  
                          &lt;h6 class="card-title"&gt;Book a Tour:&lt;a href="tel:0096899143222" style="color: white;"&gt;00968 -99143222&lt;/a&gt;&lt;/h6&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
  
              &lt;/div&gt;
  
  
  
              &lt;div class="card-deck"&gt;
                  &lt;div class="card text-white bg-primary mb-3 animated col-12 col-xs-12 col-md-12 col-lg-4 col-xl-4"  id="card4"&gt;
                      &lt;div class="card-header"&gt;Al Marnif Cave&lt;/div&gt;
                      &lt;div class="card-body"&gt;
                          &lt;!--&lt;h4 class="card-title"&gt;Primary card title&lt;/h4&gt;--&gt;
                          &lt;p class="card-text"&gt;Al Marnif Cave lies in Shatti Al Mughsayl area about 40 kilometres from Salalah in Governorate of Dhofar. It overlooks the Arabian Sea and Al Mughsayl fountains (blow-holes).&lt;a href="https://en.wikipedia.org/wiki/Salalah" target="_blank" style="color: white;"&gt;Wikipedia&lt;/a&gt; &lt;/p&gt;
  
  
                          &lt;h6 class="card-title"&gt;Book a Tour:&lt;a href="tel:0096899143222" style="color: white;"&gt;00968 -99143222&lt;/a&gt;&lt;/h6&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
  
  
                  &lt;div class="card text-white bg-primary mb-3 animated col-12 col-xs-12 col-md-12 col-lg-4 col-xl-4"  id="card5"&gt;
                      &lt;div class="card-header"&gt;Sultan Qaboos Grand Mosque&lt;/div&gt;
                      &lt;div class="card-body"&gt;
  
                          &lt;p class="card-text"&gt;Completed in 2009, this mosque can accommodate 14,000 people. Conservative dress required; women must have their ankles, wrists and hair covered.&lt;a href="https://en.wikipedia.org/wiki/Salalah" target="_blank" style="color: white;"&gt;Wikipedia&lt;/a&gt;&lt;/p&gt;
                          &lt;br /&gt;
  
                          &lt;h6 class="card-title"&gt;Book a Tour:&lt;a href="tel:0096899143222" style="color: white;"&gt;00968 -99143222&lt;/a&gt;&lt;/h6&gt;
  
                      &lt;/div&gt;
                  &lt;/div&gt;
  
  
  
                  &lt;div class="card text-white bg-primary mb-3 animated col-12 col-xs-12 col-md-12 col-lg-4 col-xl-4"  id="card6"&gt;
                      &lt;div class="card-header"&gt;Museum of the Land of Frankincense&lt;/div&gt;
                      &lt;div class="card-body"&gt;
  
                          &lt;p class="card-text"&gt;The Museum of the Land of Frankincense is a museum in Salalah, Dhofar Governorate, Oman, based on frankincense, in association with the Al-Baleed Archaeological Park, a UNESCO World Heritage Site.&lt;a href="https://en.wikipedia.org/wiki/Salalah" target="_blank" style="color: white;"&gt;Wikipedia&lt;/a&gt;&lt;/p&gt;
                          &lt;h6 class="card-title"&gt;Book a Tour:&lt;a href="tel:0096899143222" style="color: white;"&gt;00968 -99143222&lt;/a&gt;&lt;/h6&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
  
  
              &lt;/div&gt;
  
  
              &lt;div class="card-deck"&gt;
                  &lt;div class="card text-white bg-primary mb-3 animated col-12 col-xs-12 col-md-12 col-lg-4 col-xl-4"  id="card7"&gt;
                      &lt;div class="card-header"&gt;Tawi Ateer Sinkhole&lt;/div&gt;
                      &lt;div class="card-body"&gt;
                          &lt;p class="card-text"&gt;Tawi Ateer Sinkhole, known as the ‘Bird Well’ gained international fame after its discovery in 1997 by a team of Slovenian explorers in collaboration with Sultan Qaboos University as one of the largest solvent sinkholes in the world.&lt;a href="https://en.wikipedia.org/wiki/Salalah" target="_blank" style="color: white;"&gt;Wikipedia&lt;/a&gt; &lt;/p&gt;
                          &lt;br /&gt;
  
                          &lt;h6 class="card-title"&gt;Book a Tour:&lt;a href="tel:0096899143222" style="color: white;"&gt;00968 -99143222&lt;/a&gt;&lt;/h6&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
  
  
  
                  &lt;div class="card text-white bg-primary mb-3 animated col-12 col-xs-12 col-md-12 col-lg-4 col-xl-4"  id="card8"&gt;
                      &lt;div class="card-header"&gt;Footprint of Prophet Saleh's Camel&lt;/div&gt;
                      &lt;div class="card-body"&gt;
  
                          &lt;p class="card-text"&gt;A shrine housing the footprint of an enormous camel in the bedrock.he camel was said to have appeared from nearby mountains as a miracle, yet was killed three days later by unbelievers who refused to recognize the Prophet Saleh.&lt;a href="https://en.wikipedia.org/wiki/Salalah" target="_blank" style="color: white;"&gt;Wikipedia&lt;/a&gt;&lt;/p&gt;
                          &lt;br /&gt;
  
                          &lt;h6 class="card-title"&gt;Book a Tour:&lt;a href="tel:0096899143222" style="color: white;"&gt;00968 -99143222&lt;/a&gt;&lt;/h6&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
  
  
  
  
                  &lt;div class="card text-white bg-primary mb-3 animated col-12 col-xs-12 col-md-12 col-lg-4 col-xl-4"  id="card9"&gt;
                      &lt;div class="card-header"&gt;Khawr Ad Dahareez&lt;/div&gt;
                      &lt;div class="card-body"&gt;
                          &lt;p class="card-text"&gt;Khawr Ad Dahareez is located at the eastern entrance of Salalah city in the Governorate of Dhofar. Its waters intermingle with Salalah basin waters, especially the wells located on the coastal strip. This lagoon is important to biodiversity as it is heavily frequented by migratory birds.&lt;a href="https://en.wikipedia.org/wiki/Salalah" target="_blank" style="color: white;"&gt;Wikipedia&lt;/a&gt;&lt;/p&gt;
                          &lt;h6 class="card-title"&gt;Book a Tour:&lt;a href="tel:0096899143222" style="color: white;"&gt;00968 -99143222&lt;/a&gt;&lt;/h6&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
  
          &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>What i have tried are:
  1)I removed card-deck and used float:left for each card with padding-right:10px;
  however that is causing an alignment issue in the screen due to the padding </p>
  
  <p>2) I removed card-deck and gave max-width:20rem for each card ,with padding-right and this works fine,in large screen however on small screen there is one card per  row but it occupies half the screen and it looks odd.I have tried giving width in percentages for card ,like max-width:80% for each card but that is making it occupy 80% of entire screen instead of 80 % of the div in which it is there .</p>