CMS Development

CarolineLane
Participant

Phone number field not formated in my forms

SOLVE

Hello,

 

I am using a hubspot landing page template (Gradient) and when I use the phone number field, the css doesn't seem to format it: 

Snip20190712_41.png

 

Does anybody have pointers of why this field would be treated differently?

 

Here is the page: https://info.naturalinsight.com/schedule-optimization-demo

0 Upvotes
1 Accepted solution
stefen
Solution
Key Advisor | Partner
Key Advisor | Partner

Phone number field not formated in my forms

SOLVE

@CarolineLane in your CSS file on line 1654 add update the following from this:

.form input[type="text"],.form input[type="password"],.form input[type="email"], textarea {
  width: 100% !important;
  display: block;
  margin-bottom: 20px;
  padding: 20px;
  border: none;
  border-radius: 2px;
  font-size: 16px;
  background: #f3f3f4;
  color: #333333;
}

to this:

.form input[type="text"],.form input[type="password"],.form input[type="email"], input[type="tel"] textarea {
  width: 100% !important;
  display: block;
  margin-bottom: 20px;
  padding: 20px;
  border: none;
  border-radius: 2px;
  font-size: 16px;
  background: #f3f3f4;
  color: #333333;
}

 

Stefen Phelps, Community Champion, Kelp Web Developer

View solution in original post

4 Replies 4
stefen
Solution
Key Advisor | Partner
Key Advisor | Partner

Phone number field not formated in my forms

SOLVE

@CarolineLane in your CSS file on line 1654 add update the following from this:

.form input[type="text"],.form input[type="password"],.form input[type="email"], textarea {
  width: 100% !important;
  display: block;
  margin-bottom: 20px;
  padding: 20px;
  border: none;
  border-radius: 2px;
  font-size: 16px;
  background: #f3f3f4;
  color: #333333;
}

to this:

.form input[type="text"],.form input[type="password"],.form input[type="email"], input[type="tel"] textarea {
  width: 100% !important;
  display: block;
  margin-bottom: 20px;
  padding: 20px;
  border: none;
  border-radius: 2px;
  font-size: 16px;
  background: #f3f3f4;
  color: #333333;
}

 

Stefen Phelps, Community Champion, Kelp Web Developer
StephenM
Participant

Phone number field not formated in my forms

SOLVE

This works, much appreciated.

Under the same stylesheet/section, do you know how to add a similar style to a dropdown menu? 

.form input[type="select"]

This doesn't work. 

0 Upvotes
stefen
Key Advisor | Partner
Key Advisor | Partner

Phone number field not formated in my forms

SOLVE

@StephenM a select dropdown input field markup is "<select>...</select>" so instead of targeting 

input[type="select"]

You should target

select

😉

Stefen Phelps, Community Champion, Kelp Web Developer
0 Upvotes
CarolineLane
Participant

Phone number field not formated in my forms

SOLVE

Thanks a lot! It worked!