Shopify themes, liquid, logos, and UX
Hi all,
I custom coded the blue buttons (code and screenshot attached below), but they are all not aligned and the shorts and skirts button is bigger and also ends at a lower position.
What is a way to make all the buttons the same size with editing the text?
<!DOCTYPE html>
<html>
<style>
.button {
width: 10%;
border: none;
border-radius: 12px;
color: white;
padding: 20px 22px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
font-weight: 510;
margin: 20px 55px;
cursor: pointer;
}
.button1 {
background: rgb(150,151,254);
background: -moz-radial-gradient(circle, rgba(150,151,254,1) 73%, rgba(255,255,255,1) 170%);
background: -webkit-radial-gradient(circle, rgba(150,151,254,1) 73%, rgba(255,255,255,1) 170%);
background: radial-gradient(circle, rgba(150,151,254,1) 73%, rgba(255,255,255,1) 170%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#9697fe",endColorstr="#ffffff",GradientType=1);
}
</style>
<body>
<div class="center">
<button class = "button button1"> Dresses
</button>
<button class = "button button1"> Tops
</button>
<button class = "button button1"> Pants
</button>
<button class = "button button1"> Shorts
&
Skirts
</button>
</div>
</body>
</html>
Hi @ahana1605,
Do you mean without editing the text? If so, please follow the instructions below
1. From your Admin store, go to Online store > Themes > Click Actions > Edit code
2. Open the Asset folder, and find the base.css file.
3. Add the code below.
button.button.button1 {
white-space: nowrap;
width: 12%;
}
can you please send store url?
genhaat.com
Wondered if you can give me a hint to make design of this button in liquid bigger and wider, maybe some color too
Liquid code in a field : {% if product.vendor == 'EBC Bremser' %}<button onclick="history.go(-1)">Gå tilbage</button>
{% endif %}
https://bagpotten.dk/products/111349
Thx in advance Henrik
Link to page :
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024