Highlighting Selected Text

Developer
Size
1,673 Kb
Views
18,216

How do I make an highlighting selected text?

Fiddled with Geoff Graham's Pen to create a text-stroked CSS3 effect on the heading text.... What is a highlighting selected text? How do you make a highlighting selected text? This script and codes were developed by Jeya Karthika on 28 November 2022, Monday.

Highlighting Selected Text Previews

Highlighting Selected Text - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Highlighting Selected Text</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1>I'm a selectable heading</h1>
<p> Fiddling with Geoff Graham's <a href="https://codepen.io/geoffgraham/full/ziqmc">Pen</a>.</p>
</body>
</html>

Highlighting Selected Text - Script Codes CSS Codes

body { width: 100%; background-color: #e74c3c; text-align: center; font-family: source-sans-pro, sans-serif;
}
p { color: #ecf0f1; font-size: 40px; font-weight: 200;
}
h1 { color: #1abc9c; font-size: 80px; font-weight: 900;
}
h1::selection { -webkit-text-stroke: 2px #1abc9c; color: transparent;
}
a { color: #ffffff; text-decoration: none;
}
a:hover { color: #1abc9c;
}
Highlighting Selected Text - Script Codes
Highlighting Selected Text - Script Codes
Home Page Home
Developer Jeya Karthika
Username jeyakarthika
Uploaded November 28, 2022
Rating 3
Size 1,673 Kb
Views 18,216
Do you need developer help for Highlighting Selected Text?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Jeya Karthika (jeyakarthika) Script Codes
Create amazing captions with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!