I have them in their own html.Div. I was thinking it’s probably changing the horizontalAlign in the style dict but it doesn’t seem to have any effect on it. The only way I seem to get it to move is by putting it its own Div and changing the margin left but that messes up if the page is not full screen.
Any suggestions would be greatly appreciated. Here is my code:
I dont want it to be the same size as the dropdown. I was hoping to keep it the same size but instead of have it be aligned with the left side of the dropdown. I’d like it centered over the dropdown?
I’ll def take a look at the bootstrap components as well
where the width is set in the containing Div, the textAlign is 'center', and margin is 'auto' to center them both.
But I highly recommend using the bootstrap layout with auto-centering rows, cols, etc. as defined in dash-bootstrap-components; it takes all the guesswork and explicitness out of making the layouts.