Hi John,

I can not see your code but I would make sure that 'File' and 'Comment'
are in labels and then apply float:left and width's to both label and
input styles

<label for='file'>File</label>
<input for your file here/>

<label>Comment</label>
<input for your comment here/>

I.E.

LABEL {
        clear:both;
        float:left;
        width: 130px;
}

LABEL {
        float:left;
        width: 130px;
}

~ Lacuna

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John Szaszvari
Sent: 05 August 2007 07:53
To: [email protected]
Subject: [css-d] CSS Styled form not displaying properly in IE

Hi all,

A small issue here.

My CSS Styled form works 100% In Firefox but in IE the form is a bit
wacky

Here is a screenshot, Top section is FF, Bottom is IE

http://www.johnsz.com/ieproblem.JPG

I have tried so much but cant resolve this,

Here is the code for the form in HTML

<fieldset>
<legend>Upload a Image</legend>
<form method="post" enctype="multipart/form-data" action="process.php">
<label for="fileu">File:</label> <input type="file" id="fileu"
class="input-box" name="imagefile" /><br>
<label for="comment">Comment:</label> <input type="text" id="comment"
class="input-box" name="comments" /><br>
<input type="hidden" name="MAX_FILE_SIZE" value="2097152" /><br>
<input type="submit" value="submit" class="submit-button" name="upload"
/>

</form>
</fieldset>


and the CSS for the Form

label
{
width: 4em;
float: left;
text-align: left;
clear: both

}

.input-box
{
margin-left: 20px;
color: #26a;
background: #feb;
border: #26a solid 1px
}

.submit-button
{
margin-left: 1em;
clear: both
color: #000;
background: #fb0;
border: 2px #9cf outset

}

fieldset
{
display: inline;
border: #26a solid 1px;
width: 25em
}

legend
{
background: #fb0;
border: #26a solid 1px;
padding: 1px 10px

}




Any ideas? Am quite stuck on this one,

Cheers

-- 
Regards,

John Szaszvari
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to