• Resolved globalluxurysuites

    (@globalluxurysuites)


    I need to change the label text from black to white on two words of the form. Is there a way to change the style inline? I need to change the title of a column.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • wrathyimp

    (@wrathyimp)

    I too have similar requirements to change the Color of the placeholder text for on word or chararcter, in the Contact-Form7, How can I achieve it?
    Text I need is “Type your message here *”
    [textarea your-message 40×10 “Type your message here *”]
    And the last asterisk to be in red color.

    • This reply was modified 7 years ago by wrathyimp.
    wrathyimp

    (@wrathyimp)

    Can I use the multi-line option and add html tags to the text, as example below:
    [textarea your-message]
    default value for a textarea
    <font color=”red”>can be multi-line</font>
    like this
    [/textarea]

    • This reply was modified 7 years ago by wrathyimp.
    Plugin Author Lehel Szilard Marosi

    (@mlehelsz)

    Greetings @wrathyimp and @globalluxurysuites,

    Unfortunately, what you try to achieve is impossible with only HTML and CSS.
    You could try the following solution for this: https://stackoverflow.com/questions/29292520/red-asterisk-directly-beside-placeholder-in-input-box
    The main idea in that solution is to add a css pseudo element and position it with absolute positioning and try to style that separately. The problem with this solution is that the pseudo element will remain visible even the input is focused, so you should hide that element on input focus. You can achieve this behavior with jQuery, by adding a “focus” event on that form input, where you will hide the focus element. This part is a bit tricky, because hiding a :pseudo element can be done only with adding a class to it’s parent which has “display:none”.

    Best Regards,
    Lehel

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change font color of one label on the form’ is closed to new replies.