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

swift - Button on Table View Cell connected to local function -

dns - Dokku server hosts two sites with TLD's, both domains are landing on only one app -

c# - ajax - How to receive data both html and json from server? -