-
AuthorPosts
-
January 21, 2020 at 6:17 am #1176564
On my page at the bottom, I have a gravity forI was able to style the text field via CSS but I am unable to style the dropdown to match. Please assist.
I used the following CSS which works for the text input fields but not the dropdown fields
body .gform_wrapper input[type=’text’], select {
background-color: transparent !important;
border: none !important;
border-bottom: 1px solid white !important;
margin-bottom: 20px !important;
font-weight: none !important;
font-size: 20px !important;
text-align: center !important;
font-family: ‘Lato’, ‘HelveticaNeue’, ‘Helvetica Neue’, Helvetica, Arial, sans-serif !important;
color: #fff !important;
}January 22, 2020 at 8:52 am #1177025Hey navindesigns,
Thank you for the inquiry.
You can adjust the look of an option element but only to a limited extent because its style is browser dependent. You can try this css code for example.
.gform_wrapper select option { background: #000000; color: #ffffff; }
Best regards,
IsmaelJanuary 22, 2020 at 4:11 pm #1177224Unfortunately, that did not work.
All I want to do it center the “Program Interested In” text and change the color to light gray to match the other text fields label.
January 23, 2020 at 7:04 pm #1177809Hi navindesigns,
The colors look right on my end, but the as for the centering, please have a look here:
https://stackoverflow.com/questions/10813528/is-it-possible-to-center-text-in-select-boxBest regards,
VictoriaJanuary 23, 2020 at 7:11 pm #1177813There are 2 colors. One (light gray) when nothing is selected. But once the dropdown opens up , it is white (this one is correct)
January 23, 2020 at 9:53 pm #1177900Hi navindesigns,
https://share.getcloudapp.com/E0uEO1Dr It is white on my end right away. Could you please attach some screenshots of the issue?
Best regards,
VictoriaJanuary 24, 2020 at 6:22 am #1177995January 27, 2020 at 8:06 am #1178589 -
AuthorPosts
- You must be logged in to reply to this topic.