Search
 
SCRIPT & CODE EXAMPLE
 

CSS

style highlight css

/* Now supported by all major browsers */

::selection {
  background-color: #000 /* Selection highight color */
  color: #FFF /* Optional colour change of text that is being selected */
}
Comment

css highlight element

.highlight {
    box-shadow: 0 0 0 100000px rgba(0, 0, 0, .8);
}
Comment

css text highlight

/*Term: css text highlight*/

/*This uses the element ::selection, which is as far as i
know only supported by Google Chrome so far. This is not
a problem though, since other browsers will simply keep
the regular highliting styles.*/

/*Example*/
::selection {
  background-color: #000; /*Highlight Color*/
  color: #fff; /*Text Color*/
}
Comment

PREVIOUS NEXT
Code Example
Css :: css image transition fade 
Css :: css font properties 
Css :: how to set image size without changing aspect ratio in css 
Css :: css horizontal scroll cards 
Css :: flex margin between items 
Css :: css animate border bottom on hover 
Css :: Horizontal Scrolling Bopostrap CSS 
Css :: css change link color in class 
Css :: regex remove css comment 
Css :: textarea disable resize 
Css :: gap css flex 
Css :: input padding without changing width 
Css :: flexbox align last item right 
Css :: edit css jquery 
Css :: curve bottom of square css 
Css :: how to paralax effect on background image 
Css :: use css in cshtml 
Css :: css get screen height 
Css :: input type password css 
Css :: How do you get a 2nd last child in CSS? 
Css :: how to select classes that start with a certian name 
Css :: line-weight css 
Css :: transition delay only for specific property 
Css :: css inverted border radius 
Css :: outline bottom css 
Css :: css scrollbar position to bottom 
Css :: star required css 
Css :: setting multiple css using dom 
Css :: horizontal scroll only css mobile 
Css :: how to disable css-select select box 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =