CSS highlighting break after text

CSS highlighting break after text

I am trying to add breaks between text highlighting in CSS (where it doesn't highlight in a box, but instead ends the highlighting after the end of the line)

I am trying to add breaks between text highlighting in CSS (where it doesn't highlight in a box, but instead ends the highlighting after the end of the line)

This is what it currently looks like:

My CSS for this block is

h2.slide-title{
background: #89ce40;
padding: 0 0 0 !important;
line-height: 1.3;
box-decoration-break: clone;
text-transform: uppercase;
opacity: 0.9;
-webkit-box-decoration-break: clone;
-o-box-decoration-break: clone;
}

.button-medium{ background: #89ce40; line-height: 1.3; box-decoration-break: clone; text-transform: uppercase; opacity: 0.9; -webkit-box-decoration-break: clone; -o-box-decoration-break: clone; }

the HTML is:

<div class="slide-caption">
 <div class="slide-content">
    <h1><strong>COMPREHENSIVE IT SERVICES YOU CAN TRUST</strong></h1>
     </div>

&lt;h2 class="slide-title"&gt; Let us help you develop an IT Optimization Strategy and Define your technological priorities &lt;/h2&gt;

&lt;a class="slide-link button button-medium" href="http://18.205.33.160/index.php/itone-method/?customize_changeset_uuid=fde7f902-ae22-4db9-abef-fe976403cdb7&amp;amp;customize_messenger_channel=preview-0&amp;amp;customize_autosaved=on" target="_self"&gt; Learn how we can help you succeed &lt;/a&gt;

When I add display: inline; it breaks it, for the top portion it removes the highlighting entirely and when I do it for the bottom portion the button moves up into the second paragraph of text.

Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

The Ultimate Guide to Web Development with HTML and CSS

The Ultimate Guide to Web Development with HTML and CSS. Learn Web Development by creating a Blog with HTML and CSS. Make a web applications using HTML5 and CSS3. Create a blog from Scratch.

Building Custom WordPress Sites from Scratch - WordPress Theme Development

Learn to create a completely responsive website from scratch using WordPress, HTML, CSS, JavaScpript, and PHP. Also, learn to create a custom WordPress theme.

Animate Any SVG icons with CSS Only | SVG Stroke Animation With Html CSS

Animate Any SVG icons with CSS Only | SVG Stroke Animation With Html CSS