css - How can I center align a Bootstrap dropdown properly? -


i know can center bootstrap dropdown element using text-align: center css style. centers dropdown menu desired. however, when click menu activate it, , list of items appears, instead aligned left of parent div. i'd make left edge of dropdown menu flush left edge of button click activate (like if dropdown aligned left default). possible?

this jsfiddle demonstrates issue i'm having.

you can change dropdown class follows

.dropdown{ margin: 0 auto; display: table; } 

if not wish set specific width element.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -