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?
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025