sbaaaang sbaaaang - 1 month ago 6
CSS Question

Twitter Bootstrap - how to center elements horizontally or vertically

is there any way to center html elements vertically or horizontally inside the main parents?

Answer

Update: while this answer was likely correct back in early 2013, it should not be used anymore. The proper solution uses offsets.


As for other users suggestion there are also native bootstrap classes available like:

class="text-center"
class="pagination-centered"

thanks to @Henning and @trejder

Comments