There is .center-block
class in Twitter Bootstrap 3 (Since v3.0.1), so use:
<img src="https://stackoverflow.com/questions/18462808/..." alt="https://stackoverflow.com/questions/18462808/..." class="img-responsive center-block" />
More Related Contents:
- CSS align images and text on same line
- Make Bootstrap’s Carousel both center AND responsive?
- Vertically center element on HTML page with some content on top (Bootstrap)
- Bootstrap 4 Carousel “Half of previous”
- Image inside div has extra space below the image
- Does UL have default margin or padding [duplicate]
- Is there an equivalent to background-size: cover and contain for image elements?
- How do you get centered content using Twitter Bootstrap?
- How to remove the gutter (spacing) between columns in Bootstrap?
- How can I display just a portion of an image in HTML/CSS?
- Fullscreen responsive background image in CSS
- Bootstrap 4 Cards of same height in columns
- Center aligning a fixed position div
- Gap in Bootstrap stacked rows
- Protect image download
- Is inside block correct?
- Hiding elements in responsive layout?
- How to make in CSS an overlay over an image?
- Align the form to the center in Bootstrap 4 [duplicate]
- Is it possible to set a background in a bootstrap column that oversizes the div? [duplicate]
- Table headers position:sticky and border issue
- Use Fieldset Legend with bootstrap
- Bootstrap navbar link color won’t change
- How to “crop” a rectangular image into a square with CSS?
- How to align footer (div) to the bottom of the page? [duplicate]
- Change Bootstrap input focus blue glow
- Bootstrap 3 grid, does it *really* matter how many columns are in a row?
- Can a div have multiple classes (Twitter Bootstrap) [duplicate]
- CSS Border on PNG image with transparent parts
- Why use a sprite sheet rather than individual images?