But using this column combination, the 1 column layout is acivated way below the breakpoint for tablets. What is the right column mix. I tried different col-* combinations but nothing seems to work
and⌠how are we defining a global breakpoint for âtabletsâ? A chromebook pixel with 850px? a Nexus 7 with 960? how about a Galaxy Tab 10 with 1280? Or do you mean an iPad Pro (1360)?
@m_hutley Thanks for the responce. Maybe my explanation was not complete enough. I would like it to become one column when the viewport is below 1024px (992px is ok as well) Thatâs why I used the above col-* mix
So bootstrapâs âtabletâ classes use the âsmâ sizing. Instead of using md (Desktop) and lg (literally âLarger Desktopâ), try playing around with the sm ones.
You are absolutely right. I used the card deck to create space between the columns. By using a combination of card and card * within the card deck, I achieved the desired result at first glance. Only now it appears that problems arise with the breakpoints. I could have used a push / pull combination for this as well, but that gave just enough space between the columns.
Great example Paul. This is exactly where I wasâafter. Thanks for thinking along
I put another col in between two columns when I want to create space, and just set their display to none when I no longer need them in certain breakpoints.
Remove the class col-sm-12 and replace it with col-12 instead. I think you wonât need the class card-deck and card with that.
You should avoid where possible adding extra elements just to achieve a certain layout because usually it is the wrong approach. Wherever possible your html should be semantic. Only add empty html when you have no other choice. Of course there are times when it may be unavoidable but I donât see a need to do that here.