{"action":"opened","issue":{"number":399,"created_at":"2011-10-10T03:21:35Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"I have the following setup:\r\n\r\n    <div class=\"container\">\r\n        <!-- content goes here -->\r\n    </div>\r\n\r\nWhat I'm currently doing to center stuff horizontally is this:\r\n\r\n    <div class=\"container\">\r\n        <div class=\"row\">\r\n            <div class=\"span12\" style=\"float:right\">\r\n                <div class=\"span7\" style=\"float:left;\">\r\n                    <!-- centered stuff goes here-->\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n\r\nThis seems like a lot of extra markup. Is there another class I could use to simply horizontally align a `spanX` within a `container`?","comments":0,"title":"Is there a better way of centering divs within a container? ","updated_at":"2011-10-10T03:21:35Z","url":"https://api.github.com/repos/twitter/bootstrap/issues/399","id":1860512,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/e1b94e14b5a371741d0994d89d9804c7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/rfkrocktk","id":347571,"login":"rfkrocktk"},"html_url":"https://github.com/twitter/bootstrap/issues/399","labels":[],"state":"open"},"legacy":{"number":399,"action":"opened","issue":1860512}}