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 Field Boxes

Featured Replies

I am working on a job which requires that the field boxes be flush left or positioned so that they are flush left. So I got to forms and then type in the label title and the box appears. Then I do it for x number of other lines but each line of text is a different length which causes the box to move over to the right NOT making it flush left. How do I solve this problem? I tried adding in the css a specified margin for the box like say, 100 in the left margin. However, the boxes don’t end up flush left because each line is a different length. I hope someone can help me on this! I also tried putting a value in the position field instead of the margin field but that didn’t work.

 

Example..

 

fkdl;afjdlfdkl:[field box]

fdjkalfd:[field box]

fdkl;'fkld;s'aflkdkl:[field box]

 

The field boxes have to be flush left..so there will be more spaces between some the boxes and text depending on the length of the text...because I want the boxes flush left.

 

Thanks in advance.

I would place these in sepereate containters (DIVS).

 

Basically have two DIVS side by side with specified width and both floated left. Like this:

 

CSS:

 

#Text { width: 200px; height: 400px; float: left; background: red; }

#Fields { width: 200px; height: 400px; float: left; background: green; }

 

HTML:

 

<div id="Text">

<p>Label 1</p>

<p>Label 2</p>

<p>Label 3</p>

</div>

 

<div id="Fields">

(your fields here)

</div>

 

 

You may have to play around with the line height on the P class to get them lined up at the right height.

 

Cheers, MeastroM.

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.