Horje
css text highlight Code Example
html highlight text
For HTML5: (with 'mark' tag)

<p>Do not forget to buy <mark>milk</mark> today.</p> 

In CSS file: (To customize highlight)

mark {
  background-color: yellow;
  color: black;
}
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 */
}
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*/
}
css mark color
<style>
mark { 
  background-color: yellow;
  color: black;
}
</style>

<mark>Highlighted text!!</mark>
css highlight element
.highlight {
    box-shadow: 0 0 0 100000px rgba(0, 0, 0, .8);
}
mark tag in html
mark {
  display: inline-block;
  line-height: 0em;
  padding-bottom: 0.5em;
}




Css

Related
how to disable link in hmtl Code Example how to disable link in hmtl Code Example
media query for mobile min and max width Code Example media query for mobile min and max width Code Example
how to remove default padding of div Code Example how to remove default padding of div Code Example
css background image svg not showing Code Example css background image svg not showing Code Example
how to give opacity to border Code Example how to give opacity to border Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10