<!doctype html><style>
    * { outline: 1px solid black; }
    .thing {
        display: inline-block;
        vertical-align: middle;
        width: 100px;
        height: 100px;
    }
</style><body><span>foo <span class="thing"></span>