css3 - CSS Style For Div element Using Attribute -


<div class="td" disabled="disabled">pppppppppppppppppppppppppp</div> 

how write css style type of div element using attribute disabled

use attribute selector [attr=value]

.td[disabled=disabled] {    color: red;  }
<div class="td" disabled="disabled">pppppppppppppppppppppppppp</div>


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -