Unverified

Name

Highlight Text Background

About

Highlight and control the colour background for text.

Language

HTML

Rating

Voted: 0 by 0 user(s)

How to Setup Snippet

Add the HTML, and then add the CSS to the Custom CSS.

Codevault

WebSquadron

Scroll down to see more snippets from this codevault.

Wordpress Compatability

The author has indicated that this snippet is compatable up to wordpress version: 6.4

Code Snippet Plugin Sync

Free & Pro

Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.

Pro Only (Coming Soon)

You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.

History

Last modified:

03/06/2024

Important Note

This snippet has the following status:

Unverified

This snippet has not been verified, use with caution and at your own risk. See details provided by author in sidebar and click below to find out more.

Highlight Text Background

 
                    
1/* Add this HTML firsy */
2<p>I am <span class="highlighted-text">&nbsp;coloured text&nbsp;</span> in a line.</p>
3 
4/*Add this CSS */
5 .highlighted-text {
6 position: relative;
7 display: inline-block;
8 }
9 
10.highlighted-text::before {
11 content: '';
12 position: absolute;
13 top: 45%;
14 left: 0%;
15 right: 0%;
16 height: 60%;
17 background-color: #fac000;
18 transform: rotate(-1.5deg);
19 z-index: -1;
20 border-radius: 100px;
21}

0

Related Snippets

Please see some snippets below related to this snippet..

General

AI Verified

1

Enable Fluent Forms login form capability

Added: 1 year ago

Last Updated: 1 year ago

Fluent forms does not allow the creation of a login form natively at the time of writing. However, this snippet enables that function.

General

AI Verified

19

Convert To WebP

Added: 7 months ago

Last Updated: 2 weeks ago

<p>Snippet to convert JPG / PNG / Gif to WebP automatically on upload. Used GD or ImageMagick</p>

General

Unverified

0

ticketReservation

Added: 3 months ago

Last Updated: 3 months ago

Other Snippets in this Codevault

These are some popular snippets from this users codevault..

Performance

AI Verified

32

Remove Unused Javascript

Added: 1 year ago

Last Updated: 3 days ago

Remove Unused Javascript - and improve your Page Speed Insight Score

WooCommerce

Pro Verified

10

Deactivate some WooCommerce Checkout Fields

Added: 1 year ago

Last Updated: 2 weeks ago

Deactivate some WooCommerce Checkout Fields from showing

Elementor

AI Verified

6

CSS Grid Aid

Added: 8 months ago

Last Updated: 1 month ago

This can be used for any WordPress Builder to aid working with CSS Grids.