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 :: put gradient color over background image 
Css :: !important css 
Css :: media screen smartphone 
Css :: nodelist map 
Css :: create a scrapy shell 
Css :: css set background color 
Css :: remove the dotted border on links 
Css :: change image with css 
Css :: css hide mark border 
Css :: h2 in px css 
Css :: selection css 
Css :: css text rotate 
Css :: center an element in css completely 
Css :: Override Inline Styles with CSS 
Css :: changing bakcgound color like animation using tailwind 
Css :: center absolute element 
Css :: text stroke css 
Css :: css put background on top of another background image 
Css :: border-color not working 
Css :: box shadow to table cell css 
Css :: css word break 
Css :: css font variant small caps 
Css :: change text in a div css 
Css :: btn glow on hover 
Css :: css hide scrollbar but scrollable 
Css :: font size x large in css 
Css :: button click css style 
Css :: Load hidden image to HTML 
Css :: wrap text around circle image css 
Css :: rotate icon 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =