January 8, 200719 yr 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.
January 9, 200719 yr 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