Use:
<!-- unsupported by HTML5 --> <div class="col-xs-1" align="center">
instead of
<div class="col-xs-1 center-block">
You can also use bootstrap 3 css:
<!-- recommended method --> <div class="col-xs-1 text-center">
Bootstrap 4 now has flex classes that will center the content:
<div class="d-flex justify-content-center"> <div>some content</div> </div>
Note that by default it will be x-axis
unless flex-direction
is column
Related Posts:
- What is sr-only in Bootstrap 3?
- Bootstrap 4 images thumbnail classes
- Bootstrap throws Uncaught Error: Bootstrap’s JavaScript requires jQuery
- How to give spacing between buttons using bootstrap
- How can I override Bootstrap CSS styles?
- How to change the background-color of jumbrotron?
- vertical divider between two columns in bootstrap
- vertical-align with Bootstrap 3
- Table fixed header and scrollable body
- how to do a line break in Bootstrap 3.3.7
- How to increase height of textarea using bootstrap rows and columns
- Bootstrap Columns Not Working
- Bootstrap 3 Glyphicons CDN
- How can I change the Bootstrap default font family using font from Google?
- Set textarea width to 100% in bootstrap modal
- How to make Bootstrap Panel body with fixed height
- Change navbar text color Bootstrap
- How to make a monopoly board using css grid?
- How to horizontally center an element
- How do I vertically align text in a div?
- Hide scroll bar, but while still being able to scroll
- How can I center text (horizontally and vertically) inside a div block?
- Draw Circle using css alone [duplicate]
- Transparent CSS background color
- Is there any way to change input type=”date” format?
- Is element block level or inline level?
- How to center a “position: absolute” element
- Set the table column width constant regardless of the amount of text in its cells?
- Bootstrap Dropdown menu is not working
- Two divs side by side – Fluid display
- CSS Display an Image Resized and Cropped
- How do I make a placeholder for a ‘select’ box?
- FontAwesome icons are not showing, Why?
- Remove border from IFrame
- CSS color vs. background-color vs. background?
- CSS horizontal scroll
- Getting “Failed to load resource: net::ERR_FILE_NOT_FOUND” when trying to load a background image
- CSS: background-color only inside the margin
- Stretch background image css?
- Set cellpadding and cellspacing in CSS?
- Disable Scrolling on Body
- How do I set a background-color for the width of text, not the width of the entire element, using CSS?
- CSS Background Image Not Displaying
- Changing image sizes proportionally using CSS
- How to give the background-image path in CSS?
- How to overlay image with color in CSS?
- CSS Background image not loading
- Outline radius?
- Bootstrap Dropdown menu is not working
- text-overflow: ellipsis not working
- Bootstrap Dropdown menu is not working
- How to reference nested classes with css?
- right align an image using CSS HTML
- CSS Background Image Not Displaying
- How to align content of a div to the bottom
- html not linking css
- How to draw a dotted line with css?
- Removing border from table cells
- How to stick text to the bottom of the page?
- How to make blinking/flashing text with CSS 3
- bootstrap 3 navbar collapse button not working
- Why doesn’t height: 100% work to expand divs to the screen height?
- How can I position my div at the bottom of its container?
- Why doesn’t height: 100% work to expand divs to the screen height?
- How can I position my div at the bottom of its container?
- How do I install a custom font on an HTML site
- How to overlay one div over another div
- How to align an input tag to the center without specifying the width?
- How can I embed video for discord directly from website?
- Basic CSS – how to overlay a DIV with semi-transparent DIV on top
- difference between width auto and width 100 percent
- How to show text on image when hovering?
- Place input box at the center of div
- Fit background image to div
- Table scroll with HTML and CSS
- Set cellpadding and cellspacing in CSS?
- CSS content property: is it possible to insert HTML instead of Text?
- Vertical align not working on inline-block
- Indent List in HTML and CSS
- Absolute position is not working
- Position absolute but relative to parent
- Is it possible to put CSS @media rules inline?
- Make padding responsive
- Two Divs next to each other, that then stack with responsive change
- Vertically align text next to an image?
- HTML not loading CSS file
- How can I center my ul li list in css?
- Is it possible to use css to shrink text to automatically fit the size of the div
- CSS !important not working
- How to best set a CSS3 transition to none?
- Why is vertical-align: middle not working on my span or div?
- ow to change the style of the title attribute inside an anchor tag?
- Flex align-items: center not centering items
- How can I align text directly beneath an image?
- jQuery find element by data attribute value
- How do I clear the content of a div using JavaScript?
- WordPress footer menu floating with height of footer
- Style reply form different than comment form
- Style the last element having a specific class [closed]
- CSS – Initial HTML Margin Issue On WordPress Site