It's free and you have access to premium codes!
Welcome back! Please login to your account.
Don't worry, we'll send you a message to help you to recover your acount.
Please check your email for instructions to activate your account.
Written by 1 March 2021
Selecting a text in your website is important for those who want to adopt from the contents. So if you care about it, do not let this be very simple. With the following code, Selecting the texts with the mouse becomes stylish and more attractive. Enjoy!
<!-- this script is provided by https://www.htmlfreecode.com coded by: Kerixa Inc. -->
<style>
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,800);
body {
font-family: 'Open Sans';
padding: 2em;
}
h1 {
color: #444;
font: 800 350%/1.4 'Open Sans', sans-serif;
text-transform: uppercase;
}
h1::selection {
-webkit-text-stroke: 4px #fb8a05;
color: transparent;
}
a {
color: #fb8a05;
text-decoration: none;
}
a:hover {
color: #532600;
}
</style>
<h1>Nice selection</h1>
<p>Highlight the heading and let's see how this works as well.</p>
<font face="Tahoma"><a target="_blank" href="http://www.htmlfreecode.com/"><span style="font-size: 8pt; text-decoration: none">HTML Free Code</span></a></font>
<a target='_blank' href='https://www.htmlfreecode.com' style='font-size: 8pt; text-decoration: none'>Html Free Codes</a>
Comments
Here you can leave us commments. Let us know what you think about this code tutorial!