You can set only one value at a time in the display property. In this case, display: none will cause the div to not be displayed at all, so inline-block is completely irrelevant here.
I assume that you want to somehow switch the visibility using javascript. To do this, switch the display property between none and inline-block . As I said, you can always have only one value.
source share