CMS Development

RuiS
Participante

Form field highlight

resolver

Hi all,
I'd like to accomplish a similar look to the one on the form below (see attached screenshot). Basically, I want my form fields to highlight when selected.
Hope you can help. Thanks!


form-field-highlight.JPG


Rui

 

 

0 Avaliação positiva
1 Solução aceita
tjoyce
Solução
Especialista reconhecido(a) | Parceiro Elite
Especialista reconhecido(a) | Parceiro Elite

Form field highlight

resolver

@RuiS - sorry, that's what i meant to do - here's the new code : 

<style>
.af-ebook-hero .form-container .hs-form input[type="password"], .af-ebook-hero .form-container .hs-form input[type="text"]:focus, .af-ebook-hero .form-container .hs-form input[type="password"], .af-ebook-hero .form-container .hs-form input[type="email"]:focus {
    border-color: #00ffff;
    box-shadow: 0px 0px 6px rgb(0, 159, 167);
}
</style>

If this answer helped, please, mark as solved 😄


tim@belch.io | forms.belch.io | Design your own Beautiful HubSpot Forms; No coding necessary.

 

Drop by and say Hi to me on slack.

Exibir solução no post original

0 Avaliação positiva
6 Respostas 6
tjoyce
Especialista reconhecido(a) | Parceiro Elite
Especialista reconhecido(a) | Parceiro Elite

Form field highlight

resolver

@RuiS - we need a preview link to a page with one of your forms in it. Then we will give you some code.

0 Avaliação positiva
RuiS
Participante

Form field highlight

resolver

Thanks for the quick response @tjoyce!

Here's one of the forms I'd like to format: https://inbound.papersoft-dms.com/ebook-papersoft-paper-at-the-gates-driving-digital-revolution-with...

 

0 Avaliação positiva
tjoyce
Especialista reconhecido(a) | Parceiro Elite
Especialista reconhecido(a) | Parceiro Elite

Form field highlight

resolver

thanks @RuiS - Can you please try the following styles:

<style>
.af-ebook-hero .form-container .hs-form input[type="password"], .af-ebook-hero .form-container .hs-form input[type="text"]:hover, .af-ebook-hero .form-container .hs-form input[type="password"], .af-ebook-hero .form-container .hs-form input[type="email"]:hover {
    border-color: #00ffff;
    box-shadow: 0px 0px 6px rgb(0, 159, 167);
}
</style>
0 Avaliação positiva
RuiS
Participante

Form field highlight

resolver

Thanks, @tjoyce!

That works really well!
Just one thing: instead of having the highlight work on hover can we have it when the cursor is in the field? As long as the cursor is inside the field it should remain highlighted.

 

Thanks for your help,

Rui

0 Avaliação positiva
tjoyce
Solução
Especialista reconhecido(a) | Parceiro Elite
Especialista reconhecido(a) | Parceiro Elite

Form field highlight

resolver

@RuiS - sorry, that's what i meant to do - here's the new code : 

<style>
.af-ebook-hero .form-container .hs-form input[type="password"], .af-ebook-hero .form-container .hs-form input[type="text"]:focus, .af-ebook-hero .form-container .hs-form input[type="password"], .af-ebook-hero .form-container .hs-form input[type="email"]:focus {
    border-color: #00ffff;
    box-shadow: 0px 0px 6px rgb(0, 159, 167);
}
</style>

If this answer helped, please, mark as solved 😄


tim@belch.io | forms.belch.io | Design your own Beautiful HubSpot Forms; No coding necessary.

 

Drop by and say Hi to me on slack.

0 Avaliação positiva
RuiS
Participante

Form field highlight

resolver

Perfect!

Thanks a bunch 🙂

Rui