Search
 
SCRIPT & CODE EXAMPLE
 

HTML

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

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
Html :: htmlspecialchars(): Argument #1 ($string) must be of type string, array given 
Html :: zoom meeting widget for website 
Html :: vscode access workspace settings.json 
Html :: mark tag in html 
Html :: how should you use content_for and yield 
Html :: chatbot html 
Html :: year picker in html 
Html :: vue does v-html inject html 
Html :: default php version ubuntu 20.04 
Html :: double range slider html 
Html :: html anchor tag 
Html :: popper js example 
Html :: heading in html 
Html :: ubuntu 17.10 vmware 
Html :: HTML Regression 
Html :: how to add command in html 
Html :: frameset col html 
Html :: func.apply is not a function at HTMLUnknownElement.callCallback 
Html :: js date for site 
Html :: bootstrap 4 position relative div 
Html :: how often does wordle reset 
Html :: disable the hashtag to go to top 
Html :: PC JS 
Html :: what is class attribute in form 
Html :: Style a specific row or column of a HTML table using the css class for the table 
Html :: bootstrap dropright overflow issue 
Html :: <h1 
Html :: how to make a div cliackble angular 
Html :: how to underline any text in html without css 
Html :: httponly 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =