Improve image layout in the carousel example. #15648
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The way the featurette images positioned themselves when the display was below the
md
threshold was very ugly.Not only does it look better, it also does a much better job of showcasing bootstrap functionality. The new layout is a good example of the usefulness of push/pull. It also serves to educate people about
.center-block
, because it is instinctual for people to try to center images with text-align, but in this case that would not work since.img-responsive
changes the display type on the the img to block (which the website has no mention of btw). See this guy (I made the same mistake): #14596.I used this template in my project, and it took me a good while to figure out how to fix these two problems.