/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Alignment

Hi all!

I am trying to make these input boxes to evenly separated vertically. Right now, they are little bunch up together. I have attached 2 images to look at. The image “input1” is looking bunch up and I am trying to get it to look like the image “input2”.

Here is the external CSS:

[CODE]#form_container{
background-color:#e4ecff;
width:150px;
padding-top:20px;
padding-bottom:20px;
font-weight:bold;
left: 578px;
top: 160px;
position:absolute;

}[/CODE]

Here is the HTML:

[CODE] <div id=”form_container”>
First Name<br/>
<input type=”text” name=””/><br/>
Last Name<br/>
<input type=”text” name=””/><br/>
Street<br/>
<input type=”text” name=””/><br/>
City<br/>
<input type=”text” name=””/><br/>
State <br/>
<select name=”state”>
<option>please select one…</option>
<option>blah</option>
</select><br/>
Zip Code<br/>
<input type=”text” name=””/><br/>
Country <br/>
<select name=”country”>
<option>United States</option>
<option>blah</option>
</select><br/>
E-mail Address<br/>
<input type=”text” name=””/><br/>
Phone Number<br/>
<input type=”text” name=””/><br/>
Company<br/>
<input type=”text” name=””/><br/>
Job Title<br/>
<input type=”text” name=””/><br/>
</div>[/CODE]

I tried to add an extra <br/> but did not work.

Also, how do I get a 3-D effect on those input boxes. Mine currently looks very flat.

Thanks in advanced!

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@FangJan 18.2009 — Wrap the text and input in a label, as you should, then give the label a line-height which suits your requirements.
×

Success!

Help @CreativeMind spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...