Suppose this markup:
<table class="table table-bordered" align="center">
No mather how many cells I have, the table is always 100% width. Why’s that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
All tables within the bootstrap stretch according to their container, which you can easily do by placing your table inside a
.span*grid element of your choice. If you wish to remove this property you can create your own table class and simply add it to the table you want to expand with the content within:You can add this class inside your own stylesheet and simply add it to the container of your table like so:
This way your change won’t affect the bootstrap stylesheet itself (you might want to have a fluid table somewhere else in your document).