Skip to main content
Inspiring
June 16, 2017
Answered

Bootstrap and phone orientation - not switching from col-xs-6 to col-sm-4

  • June 16, 2017
  • 1 reply
  • 773 views

I am using the default bootstrap in DW CC 2017,

I am testing it with my phone whose resolution is: 540 pixels by 960 pixels.

When i hold the phone vertically col-xs-6 presents 2 thumbs across the screen

The problem is that when i turn the phone horizontally, it dose not switch to col-sm-4 and instead of 4 thumbs i get 2 large ones.

Why is that and how to fix this?

I use the default breakpoints:

1200, 992 & 768px

my basic code structure is:

<div class="container-fluid">

  <section  class="row">

    <div class="col-lg-offset-1 col-lg-10">

         <div class="row">

           <article class="col-xs-6 col-sm-4 col-md-3">

              <div><a href="#" class="thumbnail"><img src="#"  alt=""/></a>

               <h2>Thumb1</h2>

               <p>This is a smaple text</p>

              </div>

           </article>

           <article class="col-xs-6 col-sm-4 col-md-3">

              <div><a href="#" class="thumbnail"><img src="#"  alt=""/></a>

               <h2>Thumb1</h2>

               <p>This is a smaple text</p>

              </div>

           </article>

           <article class="col-xs-6 col-sm-4 col-md-3">

              <div><a href="#" class="thumbnail"><img src="#"  alt=""/></a>

               <h2>Thumb1</h2>

               <p>This is a smaple text</p>

              </div>

           </article>

        </div>

       </div>

     </section>

</div>

This topic has been closed for replies.
Correct answer BenPleysier

I think it may suit you to change the grid breakpoints. Have a look at using BootEditor | The Best Bootstrap Style Builder Software Ever

1 reply

Nancy OShea
Community Expert
Community Expert
June 16, 2017

Maybe because of the col-offset, I don't know. 

A URL to your online site would be more helpful so we could see what you're working with.

Nancy

Nancy O'Shea— Product User & Community Expert
karpiyonAuthor
Inspiring
June 17, 2017

thank you,

i do not have a site with bootstrap yet - this is what i am working on now...

But you think that it should work, correct?

I removed the offset and it is still not working

BenPleysier
Community Expert
BenPleysierCommunity ExpertCorrect answer
Community Expert
June 17, 2017

I think it may suit you to change the grid breakpoints. Have a look at using BootEditor | The Best Bootstrap Style Builder Software Ever

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!