Customize Drop Down Menu Formatting


#1

I am working on visually shortening my contact form by integrating the Field Names within the Fields themselves using a JavaScript code I found here - http://documentation.unbounce.com/hc/en-us/articles/203799174-Adding-and-Editing-Form-Fields#content….  The issue I have run into is that I can’t seem to format the drop down menus in the same way as you can text fields.

Although I have added the “Field Name” as the first option in my drop down list, I would like to be able to make the font grey like the others, round the corners of the boxes and adjust the background color of the drop down fields to match.

Here is my LP for reference - http://get.enlightiumacademy.com/dev-lp/


#2

Try this. Add this to your css

#lp-pom-form-213 .lp-pom-form-field select
{
    background-color: #f8f8f8;
    color: #000000;
    border-radius: 15px;
}


#3

Thanks, I’m not sure I did it correctly as I don’t see a difference after republishing.  Here is a screenshot of the CSS Editor

![](https://d2r1vs3d9006ap.cloudfront.net/s3_images/1406076/RackMultipart20160427-7488-16lfbvj-Edit D - Dev_LP inline.png?1461788899 “Image https//d2r1vs3d9006apcloudfrontnet/s3_images/1406076/RackMultipart20160427-7488-16lfbvj-Edit__D__-__Dev_LP__inlinepng1461788899”)


#4

Thanks, I’m not sure I did it correctly as I don’t see a difference after republishing.  Here is a screenshot of the CSS Editor ![](https://d2r1vs3d9006ap.cloudfront.net/s3_images/1406080/RackMultipart20160427-127218-cv09v1-Edit D - Dev_LP inline.png?1461789608 “Image: https://d2r1vs3d9006ap.cloudfront.net/s3_images/1406080/RackMultipart20160427-127218-cv09v1-Edit__D__-__Dev_LP__inline.png?1461789608”)


#5

You are missing style tags:


#lp-pom-form-213 .lp-pom-form-field select
{
    background-color: #f8f8f8;
    color: #000000;
    border-radius: 15px;
}

#6

I had a feeling something was missing.  Unfortunately it’s still not working.


#7

on second look I do see some of the formatting coming through on my iphone


#8

Seems to be working fine. Refresh the page, it might be loading the cached copy. This is from Google Chrome on my Windows Computer.


#9

this is getting very close, here is where I am at with the CSS:

#lp-pom-form-213 .lp-pom-form-field select 
{
    background-color: #f8f8f8;
    color: #a9a9b0;
    border-radius: 5px;
}

Any thoughts on how to get the text to be black once it’s filled it?


#10

Try This.



#lp-pom-form-213 .lp-pom-form-field select 
{
    background-color: #f8f8f8 !important;
    border-radius: 5px !important;
}

option
{
    color: #000 !important;
}

option:first-child
{
    color: #a9a9b0 !important;
}


#11

the fields are now black before and after being filled out


#12

I really appreciate your help Nishant!

I also need to figure out a way to overide the unbounce system to make these drop down menus not required.


#13

This should do:



#lp-pom-form-213 .lp-pom-form-field select 
{
    background-color: #f8f8f8 !important;
    border-radius: 5px !important;
    color: #a9a9b0 !important;
}

#lp-pom-form-213 .lp-pom-form-field option
{
    color: #000 !important;
}


#14

drop downs are gray before and after now


#15

Hi Nishant,

Any other thoughts on this?