Home > other >  Hide Singular Span
Hide Singular Span

Time:12-16

Using

span.ui.mini.teal.label {
    display: none !important;
}

renders all Span elements hidden.

enter image description here

Need to hide only Span elements Amount & Interest.

Tried

span.ui.mini.teal.label-amount {
    display: none !important;
}

CodePudding user response:

Use the attribute selector in square brackets after the tag as shown below

span[title="Amount"] {
    display: none !important;
}
<span>Amount1</span>
<span title="Amount">Amount2</span>
<span>Amount3</span>

CodePudding user response:

Try giving the span or spans you want to hide a class or id, and select by that class or id.

  • Related