/* select all disabled input field*/
input:disabled {
background: #f00;
}
<input type="text" name="username" value="admin" tabindex="-1" >
<style type="text/css">
input[name=username] {
pointer-events: none;
}
</style>
<input type="text" name="username" value="admin" >
<style type="text/css">
input[name=username] {
pointer-events: none;
}
</style>
<input type="text" name="username" value="admin" >
<style type="text/css">
input[name=username] {
disabled: true; /* Does not work */
}
</style>
input:disabled {
background: #ccc;
}
input diasbled
Code Example |
---|
Css :: material css sidebar |
Css :: pixel css |
Css :: footer |
Css :: CSS Border - Shorthand Property |
Css :: crop image in img |
Css :: what is display block |
Css :: td min-height not working |
Css :: sass example html |
Css :: after and before css |
Css :: margin |
Css :: css nearest neighbor |
Css :: how to watch sass in multiple pathes |
Css :: html display text in alternating coloured panels |
Css :: divi submenu collapse by default |
Css :: pink hex code |
Css :: css animation timing syntax |
Css :: html css form validation |
Css :: -webkit-animation css |
Css :: light grey border css |
Css :: javascript typewriter effect left to right |
Css :: good news |
Css :: qgraphicsscene get viewport width |
Css :: mvc how to css file linked |
Css :: change button shape css |
Css :: css interview questions javatpoint |
Css :: horizontal checkbox css |
Css :: sed replace spaces with hyphen |
Css :: textxarea noresize |
Css :: how to override hover css |
Css :: CSS - The Class Selectors |