Lead Capture Tools

nunoautotrip
投稿者

Different field width

解決

Hi everyone,

 

Why is the width of each field different? "Phone Number" and "Email" are longer than "Company Name" and this field is longer than the drop-down fields that come below. Also, the First and Last Name have different widths:

 

Screen Shot 2018-06-16 at 11.03.16.png

 

I have already tried to insert different snippets of code, but none of them have worked so far:

 

hbspt-form input[name="lastname"],
.hbspt-form input[name="firstname"]
{
    width: calc(50% + 94px);
}
.hbspt-form input[name="email"],
.hbspt-form input[name="phone"]
 {
    width: calc(95% - 26px);
}

 

.hs-form fieldset {
max-width: none!important;
}

 

What else can I try?

 

Link to the page where you can find the form: https://autotrip.co.uk/free-trial-gps-mileage-tracking-device/.

0 いいね!
1件の承認済みベストアンサー
Phil_Vallender
解決策
最優秀メンバー | Diamond Partner
最優秀メンバー | Diamond Partner

Different field width

解決

Hi Nuno, 

 

My dev has suggested you try the following:

fieldset input, fieldset select, fieldset textarea {
   width: 100% !important;
   box-sizing: border-box;
}

Hope this helps.

Phil Vallender | HubSpot Website Agency

元の投稿で解決策を見る

0 いいね!
4件の返信
Phil_Vallender
解決策
最優秀メンバー | Diamond Partner
最優秀メンバー | Diamond Partner

Different field width

解決

Hi Nuno, 

 

My dev has suggested you try the following:

fieldset input, fieldset select, fieldset textarea {
   width: 100% !important;
   box-sizing: border-box;
}

Hope this helps.

Phil Vallender | HubSpot Website Agency
0 いいね!
KirstenTange
参加者

Different field width

解決

Sorry but where do you put that code? 

 

Thanks in advance! 

0 いいね!
nunoautotrip
投稿者

Different field width

解決

Thanks a lot, it worked! All the best. 🙂 

0 いいね!
Phil_Vallender
最優秀メンバー | Diamond Partner
最優秀メンバー | Diamond Partner

Different field width

解決

Great! スマイリー ハッピー

Phil Vallender | HubSpot Website Agency
0 いいね!