elize elize - 2 months ago 7x
CSS Question

how to create a narrow centered column in twitter-bootstrap-3?

I used this code to create a narrow centered column in bootstrap:

<div class="container" style="width:640px!important;max-width:100%!important;">
<div class="well">content</div>

how can make it standard and responsive in bootstrap?


I don't know what you mean by 'make it standard' but the reason your column is not responsive is because you assigned max-width and width the wrong values. Your code should be as follows:

<div class="container" style="width: 100% !important; max-width: 640px !important;">
  <div class="well">content</div>