you need to set the uls width to 3 added width + borders, margins and gaskets. You can achieve centering by setting the left and right margins in the car.
see demo http://jsbin.com/odojit/2/edit
.thumbnails li { width:100px; list-style:none; float:left; height:100px; margin:10px; border:solid black 1px; } ul { padding:0px;margin:0px;} .span12 { width:368px; border:red solid 1px; margin-left:auto; margin-right:auto; }
To override something like bootstrap, you need to have a higher css specification in your new code, which means higher priority.
Usually:
An identifier selector costs 10 times more than a class selector, which is 10 times more than an element selector.
redefines
.class .class .class .class .class .class .class .class .class .class {css code}
Check out this article for more details:
http://coding.smashingmagazine.com/2007/07/27/css-specificity-things-you-should-know/
So, if bootstrap uses an identifier selector to overwrite it, you can use body #idselector, which will give it a +1 specification. Important also works, but does not work in IE6.
source share