Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

positioning part of a sentence

Featured Replies

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

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

 

  • 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

  • Author

cheers Lee just found that myself and was coming back to say so. Should have googled it :fool:

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.