change highlight color html
::-moz-selection { /* Code for Firefox */
color: red;
background: yellow;
}
::selection {
color: red;
background: yellow;
}
change highlight color html
::-moz-selection { /* Code for Firefox */
color: red;
background: yellow;
}
::selection {
color: red;
background: yellow;
}
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*/
}
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 */
}
mark tag in html
mark {
display: inline-block;
line-height: 0em;
padding-bottom: 0.5em;
}
css highlight element
.highlight {
box-shadow: 0 0 0 100000px rgba(0, 0, 0, .8);
}
how to highlight text in css
<body>
<p>The Math test is on <mark>Friday</mark>.</p>
</body>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us