A question about CSS pseudo-elements?

Writing method one:
.businessType: before {
content:";
display: block;
}
method two:
.businessType: before {
content:";
display: table;
}
Why are the two writing methods different?
the first writing method can not occupy a space, while the second writing method can play the role of occupying a space.

Sep.04,2021

what do you mean by occupancy? Is it a change? If it is a line change, both are fine


<style>
.a:before {
    content: '';
    display: block;
    outline: 2px red solid;
}

.b {
    content: '';
    display: table;
    outline: 2px red solid;
}
</style>

<div class="a"></div>
11111111

<div class="b"></div>
222222222

both of them have changed lines, but where haven't they been changed? Is there something else written in your html and css that affects it?

Menu