Search
 
SCRIPT & CODE EXAMPLE
 

CSS

css active

#id{
  background-color: red;
}
#id:active{
  background-color: Green;
}
/* note: Active doesn't mean click,
   it's when you press and hold the left mouse button.
   so when you press and hold, the background will change from red to green,
   and when you release the mouse it will change back to red   */

/* useful for scrollbar */
#container::-webkit-scrollbar-thumb:active{
	background-color: /*  colour  */;
}
Comment

PREVIOUS NEXT
Code Example
Css :: space between items in css 
Css :: padding block 
Css :: nav bar without display:flex 
Css :: Css gradient animations 
Css :: hide scroll bar when not needed 
Css :: aos makes screen unresponsive 
Css :: flex items not taking full width 
Css :: mat slide toggle iverted 
Css :: css image gallery 
Css :: font color css 
Css :: css multiple selectors 
Css :: Flexbox vs. CSS Grid 
Css :: asp net css how to change text alignment of gridview column 
Css :: How to keep same background-image ratio/size on all different screen sizes? 
Css :: css saturate 
Css :: truncate multiline text 
Css :: print zend db select query to string 
Css :: Sass @mixin and @include 
Css :: box css example 
Css :: animation using css 
Css :: css max width substruction 
Css :: ahk borderless fullscreen 
Css :: radio check mark color 
Css :: what is display inline 
Css :: how do img with same 
Css :: postion on window top css 
Css :: scss a link style 
Css :: sub menu disappears on hover css 
Css :: Background Animation onHover 
Css :: class html css 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =