Search
 
SCRIPT & CODE EXAMPLE
 

CSS

on hover css

/* Changes an element's color on hover */

.selector {
	background-color: black;
}

.selector:hover {
	background-color: blue;
}
Comment

css hover

.a:hover{background-color: black;}
Comment

css hover

.my-div:hover{
  background-color: #f00; /*RED*/
}
/*When mouse come over .my-div the background-color will be changed to red*/
Comment

CSS hover

<!DOCTYPE html>
<html>
<body>
<!-----mohammad-alshraideh----->
<h2 class="c" onclick="this.innerHTML='javascript html events'">JavaScript HTML Events</h2>
<h2 class="do" onclick="this.innerHTML='Great'">Click on this text!</h2>
<h2 class="dont" onclick="this.innerHTML='Ooops!'">don't Click here</h2>
<style>
.dont{
  background-color: rgb(26, 206, 86);
width : 190px;
height:70px;
}
.dont:hover{
width : 70px;
height:190px;
  background-color: #bd1111;
}
.do{
  background-color: rgb(26, 206, 86);
  width : 190px;
}

</style>

</body>
</html>
Comment

style hover

<style>
a.special:link {
    color: green;
}

a.special:visited {
    color: red;
}
</style>

<p><a href="#">This is a standard link, it will become purple when clicked</a></p>
<p><a class="special" href="#">This is a special colored link and become red when clicked</a></p>
Comment

hover.css

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/hover.css/2.3.1/css/hover-min.css"  />
Comment

css hover

hover
Comment

PREVIOUS NEXT
Code Example
Css :: webpack 5 compile scss to css file 
Css :: font stack css 
Css :: scss npm import 
Css :: display elements in column css 
Css :: Capitalise all first letters of words in a sentence with css 
Css :: wrap text around circle image css 
Css :: progress bar bootstrap border 
Css :: css linkup 
Css :: CSS Modules cannot be imported from within node_modules. 
Css :: spinner in html css react 
Css :: tailwind css absolute pin 
Css :: scale down image css 
Css :: css properties in html 
Css :: ellipsis 
Css :: materializecss 
Css :: css witdh 
Css :: space between items in css 
Css :: new line ::after class 
Css :: media queries and or conditions 
Css :: font color css 
Css :: scss color black white 
Css :: how use befor after for image 
Css :: css saturate 
Css :: Set the style for links to pages you have visited to any color. 
Css :: html css templates for practice 
Css :: box sizing css 
Css :: border style shorthand 
Css :: css make background image repeat vertically 
Css :: foreign key vs indexes 
Css :: How to make a pixel in css 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =