Forum Moderators: open

Message Too Old, No Replies

Cursors in the wrong place in a form field

         

zonkd

7:53 am on Aug 19, 2005 (gmt 0)

10+ Year Member



Sometimes a form I have in a webpage accepts text in the middle of a field, as though it was aligned Centre. (Or center)

Sometimes it accepts the cursor on the left, as it should.

When I look at the code for forms acting correctly and those not, I can't see any difference.

So if there a way to ensure that the cursor starts aligned to the left, please, Experts?

Scally_Ally

8:06 am on Aug 19, 2005 (gmt 0)

10+ Year Member



Could you not just set the align value in every textbox that you make? So that then there can be no way that the text can be anywhere else

{text-align: center;}
{text-align: left;}

Ally

Iguana

8:19 am on Aug 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If the field you are referring to is a TEXTAREA then make sure there's no newline inbetween the start and end tags in the source HTML.

zonkd

9:14 am on Aug 19, 2005 (gmt 0)

10+ Year Member



Thanks, Iguana, I think you have found it. (I'll check it tonight.)

Thanks, Scally_Ally. I think Iguana has found the fault. But perhaps better not to use tags if Iguana's suggestion is the fault. Cheers, gentlemen.