Re: How to set the height and width to match the "buy and add to cart" button

How to set the height and width to match the "buy and add to cart" button

yua
Tourist
3 0 3

hey so I made a custom liquid code for a text form

 

this is the code 

<textarea

required
class="text-area"
placeholder=" Type your email here"
name="properties[your_email]"
form="product-form-{{ section.id }}"

>
</textarea>

 

and I have no idea on how to make it the same length as the "buy" button or even make the height of it as I desire

 

please help

Replies 4 (4)

Made4uo-Ribe
Shopify Partner
6827 1627 2001

Hi @yua ,

You need to add css code same height and width of the button. You like to match. 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
yua
Tourist
3 0 3

how do I do that? is it "class" command?

or just put height and width? since that doesn't work

Made4uo-Ribe
Shopify Partner
6827 1627 2001

It depends how you like to attach the style.

You can attach by style tag. 

<style> 

.textarea {

width: 

hieght:

}

</style>

 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
yua
Tourist
3 0 3

Thank you I will try