I can't focus my modal twitter bootstrap with different sizes. Here you can see a live example here and here . (just click on the image or "Report this image"). You will see that the modal works like a charm, but it is not located horizontally. I tried everything: fields, float, text-align and even <center>
.modal:
.modal { position: fixed; top: 10%; z-index: 1050; width: auto; background-color: #ffffff; border: 1px solid #999; border: 1px solid rgba(0, 0, 0, 0.3); *border: 1px solid #999; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; outline: none; -webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); -moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); -webkit-background-clip: padding-box; -moz-background-clip: padding-box; background-clip: padding-box; }
.modal bodies:
.modal-body { margin: 0 auto 0 auto; position: relative; padding: 15px; overflow-y: auto; }
source share