tags:

views:

20

answers:

1

If I have two <input type="text" ... and I know that one should aceept text and the other a numeric value (and will check that in PHP when validating the form), can I align the contents of the text box left & the contents of the numeric box right using CSS?

+2  A: 
<style type="text/css">
     .right { text-align: right; } </style>

<input type="text" /> <input type="text" class="right"/>
Rob
+1 an dthe answer. D'oh! I had put the class on the enclosing DIV
LeonixSolutions