/    Sign up×
Community /Pin to ProfileBookmark

HTML and CSS Highlight effect

Hi there! How can I achieve this effect in web design:

[upl-image-preview url=https://www.webdeveloper.com/assets/files/2020-06-01/1591003425-466536-image.png]

The highlight color is slightly below the actual text. Thanks!

to post a comment
CSSFull-stack DeveloperHTML

3 Comments(s)

Copy linkTweet thisAlerts:
@cootheadJun 01.2020 — Hi there jtcarlos13,

does this help...
<i>
</i>&lt;!DOCTYPE HTML&gt;
&lt;html lang="en"&gt;
&lt;head&gt;

&lt;meta charset="utf-8"&gt;
&lt;meta name="viewport" content="width=device-width,height=device-height,initial-scale=1"&gt;

&lt;title&gt;Untitled Document&lt;/title&gt;

&lt;!--&lt;link rel="stylesheet" href="screen.css" media="screen"&gt;--&gt;

&lt;style media="screen"&gt;
body {
background-color: #f0f0f0;
font: 1em/150% sans-serif;
}

span {
display: inline-block;
padding: 0.25em 0.5em;
font-size: 2.5em;
text-transform: uppercase;
background-image:linear-gradient( to bottom, transparent 35%, #58ffc2 35% );
}
&lt;/style&gt;

&lt;/head&gt;
&lt;body&gt;

&lt;span&gt;home&lt;/span&gt;

&lt;/body&gt;
&lt;/html&gt;


_coothead_
Copy linkTweet thisAlerts:
@jtcarlos13authorJun 01.2020 — @coothead#1619016 Hi! Thanks for the help, I appreciate it!
Copy linkTweet thisAlerts:
@cootheadJun 01.2020 — No problem, you're very welcome. 😄

_coothead_
×

Success!

Help @jtcarlos13 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.23,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...