Reputation: 237
I have a text area in my contact form, nothing too special:
<textarea class="txb_message" id="txb_message" name="txb_message" placeholder="What would you like to talk about?"></textarea>
But the text doesn't align in the text area as it does in the text boxes above it, and I'm not sure why.
Thanks!
Upvotes: 0
Views: 696
Reputation: 21725
I would just add padding to the top of the textarea.
.txb_message {
padding: 10px 0 0 0; /* whatever you need */
}
Possibly to the sides also since you are using text-indent
and then remove that for the textarea. Your final CSS might look like this:
.txb_message {
padding: 10px;
text-indent: 0;
}
Try filling out your textarea with a bunch of text.
Upvotes: 1
Reputation: 1721
you need to add 15px of padding to the textarea like so :
.txb_message {
height: 68px;
width: 300px;
float: left;
margin-top: 10px;
padding: 15px 0 0 0;
}
Upvotes: 1