January 20, 201115 yr Here is my code: Legal costs: £ <input type="text" name="Legal Costs" /><br/><br/> I have created a style for the box to float it to the right so all boxes and text align but I'd like to position the £ just to the left of the box. I've tried wrapping in a <span> and floating it to the right but it then appears after the box and I tried giving it a left-margin of 200px but that margin is from the end of the heading rather than the edge of the screen. Does that make any sense at all? So Legal Costs:-align left, £ just to the left of the text entry field box & text entry box-aligned to the right. Ja
January 20, 201115 yr Your should use a LABEL element for the input label <label for="lc">Legal costs: £</label> <input type="text" id="lc" name="Legal Costs" /> You can now float just the LABEL element to the left and it should line up
January 20, 201115 yr Author Thanks BlueDreamer. What does the 'for' stand for? Also its the £ that I needed to float towards the box so that you have the text on the left with the pound sign and box on the left, know what I mean? Ja
January 20, 201115 yr Author cheers Lee just found that myself and was coming back to say so. Should have googled it
Create an account or sign in to comment