/    Sign up×
Community /Pin to ProfileBookmark

Positioning form on page – won’t work in IE6

Hi,

I am trying to get a form positioned correctly on my page. I seam to have the form sitting ok on the page, but the form has two columns. In IE 7 and Firefox, all looks well. But in IE 6 the right hand column (“coborrower” column) will not line up properly. I’ve messed with this for too long (it depresses me just thinking about it).

Can someone spot where I am going wrong?

page can be viewed at:
[url]http://www.sitesbysarah.com/main_homeloan_form.htm[/url]

I have two css pages linked: main.css and form.css. I am guessing the problem is somewhere in the following form.css code:

[code]

* { padding: 0; margin: 0; }

body {
font-family: Arial, Helvetica, sans-serif;
font-size: 13px;
}

h1 {
font: 1.0em Arial, sans-serif;
color: #000000;
margin-left: 0px 0px 0px -20px;
font-weight: bold;
}

h2 {
margin: 10px 0 0 0px;
font: .7em Arial, sans-serif;
color: #000000;
font-weight: 600;
}

h3 {
margin: 10px 0 0 10px;
font: .7em Arial, sans-serif;
color: #000000;
font-weight: 600;
}

h4 {
color: #000000;
font-weight: 600;
text-align: left;
padding: 0px 0px 0px 10px;
}

[bold]

#formwrapper {
border: 1px solid #660000;
margin: 0 0;
width: 700px;
height: 1320px;
background-color: #ffffff;
}

#borrower {
color: #000;
background-color: #ffffff;
margin: 10px 0px 10px 0px;
padding: 10px;
height: 1250px;
width: 275px;
float: left;
}

#coborrower {
float: right;
color: #000;
background: #ffffff;
margin: 10px 0px 10px 0px;
padding: 10px;
width: 280px;
height: 1250px;
display: inline;
position: relative;
}

[bold]

input {
color: #000000;
background-color: #ffffff;
border: 1px solid #660000;
}

input.txt {
color: #000000;
background-color: #ffffff;
border: 1px inset #660000;
width: 150px;
}

input.txt2 {
color: #000000;
background-color: #ffffff;
border: 1px inset #660000;
width: 20px;
margin: 0 10px 0 20px;

}

input.radio {
width: 20px;
}

input.radio_txt {
width: 127px;
}

input.btn {
color: #660000;
float: right;
border: 1px outset #660000;
width: 100px;
margin: 0 0 0 30px;
}

input.submit {
float: left;
margin-left: 135px;
}

input.reset {
float: left;
margin-left: 10px;
}

form p {
clear: left;
margin: 0;
padding: 0;
padding-top: 5px;
font-family: Arial, sans-serif;
font-size: .8em;
}

form p label {
float: left;
width: 100px;
font: bold 0.9em Arial, sans-serif;
text-align: left;
padding: 4px 10px 0 0;
}

td p {
font-size: .7em;
}

[/code]

If anyone can help me out with this, I would really appreciate it.

Thanks,
Sarb

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@CentauriJul 06.2007 — Problem is this in main2.css [CODE]p {
[COLOR="Red"]width: 500px;[/COLOR]
padding: 0 20px 10px 30px;
color: #000;
line-height: 1.8em;
}[/CODE]


It is forcing the divs too wide in IE
Copy linkTweet thisAlerts:
@sarbauthorJul 06.2007 — Thank you,

I looked at just about everything except the p tag. Never suspected that as being an issue. Was sure it was something to do with the two columns or their wrapper.

Thanks for your help!!

Sarb
×

Success!

Help @sarb 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 6.11,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

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