CSS Problem
Posted: Tue Aug 21, 2007 2:49 am
Hi there...
I have a new form I'm working on for my website, but the radio buttons are getting all out of align for some reason.
URL: http://www.goforward.co.nz/index.php?pa ... Commission
Following is the css i'm using... if I take out .referralform label, the radio buttons will behave themselves, and align properly.
Any idea's / help much appreciated. (It make's no difference if I have the field label turned on)
input {
color: #333;
background: #FFF;
border: 1px solid #003366;
}
textarea {
color: #333;
background: #FFF;
border: 1px solid #003366;
}
.submit input {
color: #FFF;
border: 1px solid #003366;
background: #003366;
}
.referralform DIV {
padding: 0 0 0 0;
width: 100%;
}
.referralform fieldset {
margin-bottom:1em;
border:0px solid #999;
padding:0.5em;
}
.referralform legend {
color:#003366;
background:#FFF;
font-style:italic;
font-weight: bold ;
font-size:1.0em;
margin-bottom:0.5em;
padding:0.2em;
width:auto;
border:0px solid #003366
}
.referralform label {
display: block; /* block float the labels to left column, set a width */
float: left;
width: 100px;
/* padding: 0; */
margin: 5px 5px 0 0; /* set top margin same as form input - textarea etc. elements */
text-align: right;
}
.referralform input, {
width:auto;
}
.referralform textarea {
width:300px;
}
.referralform .submit {
margin: -1em 0 0 5em;
}
I have a new form I'm working on for my website, but the radio buttons are getting all out of align for some reason.
URL: http://www.goforward.co.nz/index.php?pa ... Commission
Following is the css i'm using... if I take out .referralform label, the radio buttons will behave themselves, and align properly.
Any idea's / help much appreciated. (It make's no difference if I have the field label turned on)
input {
color: #333;
background: #FFF;
border: 1px solid #003366;
}
textarea {
color: #333;
background: #FFF;
border: 1px solid #003366;
}
.submit input {
color: #FFF;
border: 1px solid #003366;
background: #003366;
}
.referralform DIV {
padding: 0 0 0 0;
width: 100%;
}
.referralform fieldset {
margin-bottom:1em;
border:0px solid #999;
padding:0.5em;
}
.referralform legend {
color:#003366;
background:#FFF;
font-style:italic;
font-weight: bold ;
font-size:1.0em;
margin-bottom:0.5em;
padding:0.2em;
width:auto;
border:0px solid #003366
}
.referralform label {
display: block; /* block float the labels to left column, set a width */
float: left;
width: 100px;
/* padding: 0; */
margin: 5px 5px 0 0; /* set top margin same as form input - textarea etc. elements */
text-align: right;
}
.referralform input, {
width:auto;
}
.referralform textarea {
width:300px;
}
.referralform .submit {
margin: -1em 0 0 5em;
}