Shopify themes, liquid, logos, and UX
Thanks in advance! I am looking to add a underline under my button text for mobile and pc view. I am looking to have a bit of space between the word and the underline. Example shown below of exactly what I am looking for.
password: dc
Hi @MMast
Do you mean like this?
if it is chck this one.
.product-form__submit span {
position: relative;
text-decoration: none;
display: inline-block;
padding-bottom: 5px;
}
.product-form__submit span::after {
content: '';
position: absolute;
left: 0;
bottom: -2px;
width: 100%;
height: 1px;
background-color: currentColor;
}
Sorry I was not very specific. I am talking about the rich text 'Buttons'.
Oh check this one then.
.rich-text__buttons a {
position: relative;
text-decoration: none;
display: inline-block;
padding-bottom: 5px;
}
.rich-text__buttons a:after {
content: '';
position: absolute;
left: 0;
top: 0;
width: 70%;
margin: auto;
height: 1px;
background-color: currentColor;
}
And save.
Same Instruction.
This works for just pc. Is there any way to make it work for mobile as well please.
That must work in all screen, I just check your store now but its visible on the mobile screen.
Did you refresh after save?
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025