Search
 
SCRIPT & CODE EXAMPLE
 

CSS

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

how to highlight any text in html and css

<!DOCTYPE html>
<html lang="en">
<head>
    <title>How to highlight any text in html</title>
</head>
<body>
    <p style="color: black;"><mark style="background-color: yellow;">Bharath Matha Ki Jai</mark></p>
</body>
</html>
Comment

how to highlight text in css

<body>
<p>The Math test is on <mark>Friday</mark>.</p>
</body>
Comment

PREVIOUS NEXT
Code Example
Css :: box align css 
Css :: edit input field css 
Css :: css background-clip 
Css :: repeating-conic-gradient css 
Css :: All Stylesheet Media Types 
Css :: media query min and max width for all devices 
Css :: css animation 3d effect 
Css :: css only style horizontal scrollbar 
Typescript :: vscode custom snippets how to use file name 
Typescript :: typescript react onchange event type 
Typescript :: next js onclick navigate 
Typescript :: input event typescript 
Typescript :: regex only digits and dots 
Typescript :: type of setinterval typescript 
Typescript :: axis limits matlab 
Typescript :: create react app with typescript config 
Typescript :: leaderstats roblox setup 
Typescript :: redux toolkit typescript install 
Typescript :: sonar ignore rule 
Typescript :: serenity.-is add column picker button 
Typescript :: Define a list of optional keys for Typescript Record 
Typescript :: serenity Criteria typescript 
Typescript :: battle cats challenge battle 
Typescript :: list the constituents of the xylem. what would happen if the xylem of root of a plant is blocked? 
Typescript :: mongodb increment array item 
Typescript :: installing bootstrap in angular 9 
Typescript :: randomly choose n elements from a text file linux 
Typescript :: Illuminate Contracts Encryption DecryptException The payload is invalid. 
Typescript :: type of children for nextjs 
Typescript :: angular array filter typescript 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =