Hi, The above is driving me crazy- I cannot find a decent way (CSS/ Javascript/ jquery whatever) to get text to be vertically aligned to the centre of a text area- so even if the user types more text in, it stays vertically aligned to the centre. Can anyone help? Thanks
Correct me if i'm wrong, but this is one area where CSS falls down (or at least CSS with cross browser compatibility)... you may have to use a table with the text inside for this (valign = middle) IIRC.
Use the table cell to create a false textarea. Place the true textarea within that table cell [valign'ed, of course], with borders removed and with some padding in the cell to avoid the true textarea from going right to the edges.
Was a nice idea though EDIT: actually, there's probably some obsure browser specific setting you could use to disable this.
It might work in certain browsers, but some browsers add a disabled vertical scroll bar to text areas. Say you're making some sort of internal system where you know exactly what browser software people are using, you may get away with it.