on click css
:active {
css declarations;
}
a:active
{
background-color: yellow;
}P Example
Click on a <p> element to change its text color to red:
<p id="demo" onclick="myFunction()">Click me to change my text color.</p>
<script>
function myFunction() {
document.getElementById("demo").style.color = "red";
}
</script>
Also in CSS:
- no li style
- css border opacity
- javascript remoev css class
- ie11 flex 1
- bootstrap dashboard template
- how to link locally installed fonts to css
- style sheet link
- box shadow css
- css box model
- css anchor fill parent
- what does css stand for
- remove background when autofill input css
- pixel to inches
- css div vertical center
- media query min and max
- css smooth text shadow
- html5 snippet
- cursor as image css
- css grid mdn
- font color css
- background image overlay
- how to change hyperlink color in css
- css remove blue outline button
- disable scroll css