Suppose, I have a div with following css proprties among with other similar divs.
<div
style="
display: block;
width: 200px;
border-right: 1px solid rgb(237, 237, 236);
white-space: nowrap;
min-height: 32px;
cursor: default;
padding: 5px 8px 6px;
font-size: 14px;
overflow: hidden;
height: 32px;
"
>
howdie
</div>
I want to select div by 2 inline properties display: block;
and white-space: nowrap;
.
I know I can select the div by one property like display: block;
:
div[style*="display: block;"]{
// div selected
}
But can't select the div by 2 properties:
div[style*="display: block; white-space: nowrap;"]{
// nothing get selected
}
How to select div (without js) by 2 inline properties which may not be sequential like display: block;
and white-space: nowrap;
?