I have a div which is set to display: 'none'
by the framework our company is using.
<div id="mydiv" style="display: none">...</div>
However when it is shown, it is set to display: block
, but I need it to be display: inline-block
. So I tried to style the div like this:
#mydiv:not([display='none']) {
display: inline-block !important;
}
But it is not working like I was expecting. I want to achieve this with CSS only. Does somebody know how and if this is possible?