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 -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -