How can i make my cursor start from beginning in textarea?

The cursor in my textarea is not starting at the beginning when clicked to enter text.how can i make my cursor start at the beginning.

here is my html code;

<p><label>Product Description</label>
<textarea name="product_desc"  cols="19" rows="4"  class="text" />
</textarea></p>

my css:

textarea {
	border: 1px solid #ddd;
	background: #fff url(../img/input-shaddow.gif) no-repeat left top;
	font: 11px Arial, Helvetica, sans-serif;
	color: #000;
	padding: 5px;
	width: 262px;
	float: left;
	margin: 0 10px 0 0;
	height: 50px;
	overflow: hidden;
}

normally if you have left white space between the textarea tags it is transffered to the area in the view. Delete any space and you will achive what you want.

There’s no way to do that with HTML or XHTML, which are markup languages, not programming languages.

BTW, your markup is incorrect (or invalid, if XHTML). You have <textarea.../></textarea>. Lose the ‘/’ from the start tag.

Correct for the markup I did not notice,
incorrect for the other. If you have no white spaces it will default to the beginning of the area

Yes, but that’s not (X)HTML, that’s content. :slight_smile:

Thanks for helping.the whitespace between the textarea tags caused that.
gosh can’t believe i don’t know this even though i have been coding for the last 3 years

cheers