Site logo

Archived topic

How to make placehold text top alignment when using Contact Form 7?

4 replies · Started by yitegele on January 12, 2023

Viewing posts 1–5 of 5

Hi GP Team!

How are you?

How to make placehold text top alignment when using Contact Form 7?

I tentatively make it 4px size font and 1 line height, then I find the text of "Your Email *" seems bottom aligned, and "Your Message *" is top aligned.

Is it possible to make them both top alignment?

Thank you!

Sorry I forgot to add the link. Please find below. Thank you.

Hi there,

add this CSS to give the input::placeholder a min-height:

.wpcf7 input::placeholder {
    min-height: 20px;
}

if it is larger then the font size it should vertically align it to the top.

Hi David!

Thank you for quick reponse.

However, it seems not working. Kindly click the two placehold text boxes, and you will find the position of the mouse cursor is different. One is top, and the other one is bottom.

Thank you.

Hi there,

Have you checked with CF7's support team first on this?

This archived topic is closed to new replies.