This question already has an answer here:
Vertical align middle works, but you will have to use table-cell on your parent element and inline-block on the child. This solution is not going to work in IE6 & 7. Yours is the safer way to go for those.
- How to put table in the center of the page using CSS? 6 answers
I am trying to center a table using bootstrap.
Here is the html:
However, no matter how I adjust the
css
, the table is still aligned to the left. I'm sure I am missing something simple. I also thought container-fluid
would make the table span across the whole page.here is the css:
Tim Lewis12.5k66 gold badges3939 silver badges6767 bronze badges
H CH C
40411 gold badge99 silver badges2323 bronze badges
marked as duplicate by Quentin cssDec 14 '15 at 15:58
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
2 Answers
Draken2,60888 gold badges2828 silver badges4242 bronze badges
Antonio SmoljanAntonio Smoljan2,05711 gold badge88 silver badges1010 bronze badges
patrickpatrick8,49155 gold badges5050 silver badges6868 bronze badges