White text on white background in contact form

  • Hi,

    I have changed the text colour of my Contact section to white but when I type in the form fields, the text appears white on white background so it is invisible.
    How can I change the text colour of the input fields or the background of the input fields but leaving the rest of the text in the section white?

    Thank you

    Hello @artofwalls,

    You may want to add the CSS code below to your Custom CSS section:

    .contact input[type=”text”], .contact input[type=”email”], .contact textarea{
    color:white;
    background:black;
    }

    You can change above values, so they fit your requirements.

    Let me know if you have any questions.

    Cheers,
    Piotrek

    Hi,
    This only changes the message text area, but not the name, email and subject fields 🙁

    It seems that “” are being changed by our forum scripts. Could you try copying it from that post?

    .contact input[type=”text”], .contact input[type=”email”], .contact textarea{
    color:white;
    background:black;
    }

    If it won’t work, please try to remove “” and write them again.

    Cheers,
    Piotrek

    Yes, it worked now!
    The problem was the forum was converting the quotes into typographic quotes.

    In the meanwhile I managed to find an alternative solution:


    .contact input, .contact textarea {
    color:black;
    background:lightblue;
    }

Tagged: 

You must be logged in to reply to this topic.