Search
 
SCRIPT & CODE EXAMPLE
 

HTML

css change color on hover

<!--
To change the color when hovering in CSS,
you will use the CSS selector called :hover

Example:
-->

<style>
button:hover {
        background-color: darkred;
      }
</style>
Comment

change bg color on hover

/* Change background color on hover */
.myClass:hover {
  background-color: yellow;
}
Comment

PREVIOUS NEXT
Code Example
Html :: bootstrap icons chevron 
Html :: html to hml 
Html :: prevent from going to a function html click 
Html :: html table two headers 
Html :: how to add label on image in html 
Html :: html color crimson hex 
Html :: how to disable li tag in html 
Html :: gap between grid layout bootstrap 
Html :: html iframe aspect ratio 
Html :: bold html 
Html :: html language tags and attributes 
Html :: html track 
Html :: markdown table cell multiple lines 
Html :: bootstrap loader 
Html :: html signature 
Html :: how to align photos center html 
Html :: bootstrap 5 list 
Html :: to centre each content in html 
Html :: style tag html 
Html :: bootstrap radio button 
Html :: capture webcam js 
Html :: how to reduce the size of a button in boostrap 
Html :: blue color html code 
Html :: what is ul stands for in html 
Html :: html basic template 
Html :: change font size of input text html 
Html :: class required bootstrap 3 
Html :: alt html 
Html :: prevent modal from auto closing when clicked away 
Html :: svelte for loop for index 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =