Struggling to utilize the padding feature in CSS effectively with the HTML below, as it only pads the first word on the left side:
The current CSS code I have that's not working correctly:
mark {
background-color: #89ce40;
color: white;
opacity: 0.89;
padding-right: 5px;
padding-left: 10px;
}
<div class="slide-content">
<h1><strong><span><mark>COMPREHENSIVE IT </mark><mark> SERVICES YOU CAN TRUST</mark><mark></mark></span></strong></h1>
<h2><mark><span>Let us help you develop an IT </span></mark><mark> Optimization Strategy and </mark><mark> Define your technological </mark><mark> priorities</mark></h2>
</div>
Also attempted to apply padding functions using
.slide-content{padding-left: 10px;}
Is there a way to separate padding for each <mark></mark>
section?
https://i.sstatic.net/52Y2s.png
^ This is the result with
mark{padding right: 8px; padding-left 20px}
trying to pad each line on the left like the first word in each element
Managed to adjust the right-hand side padding by tweaking the mark element, but the issue persists on the left side, only affecting the first word in each string as opposed to the beginning of each <mark>
Realizing now that the padding is being applied on the line above, apologies for the confusion in my previous explanations of what I was attempting to do.