Skip to content

Conversation

@taylorbryant
Copy link

Last night, I was looking through Bootstrap's documentation on my phone, and I noticed that the album example looked rather odd. My first thought was that maybe the examples are not meant to be optimized for mobile. After looking at the other examples, which look just as good on mobile, I concluded otherwise.

In these commits, I did the following:

  • Removed float and width properties from the .card class
  • Added .col-md-4 class to each card
  • Refactored the footer to use Bootstrap's own grid system instead of relying on the .float-right utility class

In my opinion, the end result is a much better experience on mobile. The only thing that sticks out now is that the buttons at the top hug each other on mobile. Anyways, I figured this is a decent start.

In the interest of using Bootstrap's own grid system for the cards in this example, I removed both the float and width properties from the .card class.
- Adds .col-md-4 to every card in an effort to improve user experience on mobile devices
- Refactors footer section to use Bootstrap's own grid system, simultaneously improving user experience on mobile devices
@mdo
Copy link
Member

mdo commented Jan 10, 2018

Haven't looked at the code changes here, but nearly all the examples are getting updated and I'm adding new ones in #24898.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants