VincenzoMuolo• 180
@VincenzoMuolo
Posted
Hi there!
For your request try use padding-left:1.5em;
in span class.
Hope to have been helped you!
Cheers
0
RM.Aniel• 340
@anielrussel
Posted
@Shirohige-96 I've tried it and different ways but did not work, thanks anyway.
0
VincenzoMuolo• 180
@VincenzoMuolo
Posted
@anielrussel Hi, you could consider to change the html and doing something like this:
HTML
<div class="price_container">
<h1>149.99$</h1>
<span>169.99$</span>
</div>
CSS
.price_container{
display:flex;
align-items:center;
gap:1.5em;
}
.price_container span{
text-decoration: line-through;
}
0