Sublime ads not centered

Need help figuring out why I can’t get my Sublime adds centered

this is the CSS I have to “style” it, and feel like its the culprit but can’t figure out what to add or take away

.sublime_embed-inner {
    margin-top: 16px;
    margin-bottom: 32px;
    width: auto;
    font-size: 1em;
    padding: 2px 32px;
    background-color: #f7f7f7;
    border-radius: 16px;
    display: inline-block;
    text-align: center; 


margin-right: auto;
margin-left: auto;

I’ve not seen width: auto used before, at least not for alignment.

that didn’t do it.

looks like its something todo with

display: inline-block;

If I remove that it displays centered but it spreads wide, if that makes sense

You could replace the display with:

display: flex;
justify-content: center;
align-items: center;

But that might mess other things up. I’ll take a look at the Sublime embed I’m testing and give a better answer, unless somebody else solves it in the meantime.