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?
you can change dropdown
class follows
.dropdown{ margin: 0 auto; display: table; }
if not wish set specific width element.
Comments
Post a Comment