Click to See Complete Forum and Search --> : Positioning form on page - won't work in IE6


sarb
07-06-2007, 09:21 AM
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:
http://www.sitesbysarah.com/main_homeloan_form.htm

I have two css pages linked: main.css and form.css. I am guessing the problem is somewhere in the following form.css 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;
}





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

Thanks,
Sarb

Centauri
07-06-2007, 10:43 AM
Problem is this in main2.css p {
width: 500px;
padding: 0 20px 10px 30px;
color: #000;
line-height: 1.8em;
}

It is forcing the divs too wide in IE

sarb
07-06-2007, 01:31 PM
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