I want to align my placeholder to the upper left corner, but no matter what I tried, I couldn't do it. Unfortunately, other sources didn't help me either.
There is an answer to this question, but I couldn't find a source that does it without using <div>.
Flexbox used.
<div class="inputs">
<input class="name" name="name" type="text" placeholder="Name">
<input class="mail" name="mail" type="text" placeholder="E-mail">
<input class="message" name="message" type="text" placeholder="Please enter your message">
</div>
This is my css code. I tried to keep the placeholder in the upper left corner.
input[type=message]::placeholder {
left: 0px;
top: 0;
font-size: 20px;
vertical-align: 0;
}
The best way to write message using . you dont have to set placeholder at top left in textarea element.