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
10038 2387 3014

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 are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an 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
10038 2387 3014

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 are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
yua
Tourist
3 0 3

Thank you I will try