Shopify themes, liquid, logos, and UX
How can I change the height of the custom text field? I would like it to be only as high as a line of text.
https://taskslider.de/products/taskslider-01
More important on the mobile version of the website.
<label for="message" class="form__label">Personalisierung (Groß- und Kleinschreibung beachten)</label>
<div class="field">
<textarea
id="message"
class="text-area field__input"
placeholder="Message"
name="properties[Text]"
form="product-form-{{ section.id }}"
required
maxlength="10"
></textarea>
</div>
Update your code to this
<label for="message" class="form__label">Personalisierung (Groß- und Kleinschreibung beachten)</label>
<div class="field">
<textarea
id="message"
class="text-area field__input"
placeholder="Message"
name="properties[Text]"
form="product-form-{{ section.id }}"
required
maxlength="10"
></textarea>
</div>
<style>
#message {
height: 3.5rem !important;
padding: 4px !important
}
</style>
- Helpful? Like and Accept solution!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
Unfortunately it does not work
This is my Css Code in Bse.css
product-form .field {
margin-bottom: 3rem;
height: 20%;
width: 100%;
}
@media screen and (max-width: 749px) {
product-form .field {
margin-bottom: 2rem;
height: 20%;
width: 100%;
}
}
Code updated
<label for="message" class="form__label">Personalisierung (Groß- und Kleinschreibung beachten)</label>
<div class="field">
<textarea
id="message"
class="text-area field__input"
placeholder="Message"
name="properties[Text]"
form="product-form-{{ section.id }}"
required
maxlength="10"
></textarea>
</div>
<style>
#message {
height: 3.5rem !important;
padding: 4px !important;
min-height: 20px !important;
}
</style>
- Helpful? Like and Accept solution!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
it just changes the message. i want to change the height of the white container so that there is just one line
So please change the code 20% with some px example 20px
product-form .field {
margin-bottom: 3rem;
height: 20%;
width: 100%;
}
@media screen and (max-width: 749px) {
product-form .field {
margin-bottom: 2rem;
height: 20px;
width: 100%;
}
}
- Helpful? Like and Accept solution!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
Unfortunately it didn't work, because then the text input is under the button and it overlaps
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