adib16
adib16

Reputation: 1697

position absolute not working in ie8

this is html:

<form>
    <input type="file" id="iefile">
</form>
<form>
    <input type="file" id="iefile">
</form>

this is css:

form{
    position:relative;
}
#iefile{
    position:absolute;
    top:-10px;right:-20px;
    width:100px;
    height:100px;
}

and this is output in ie8:

enter image description here

I have 10 form.but in the above I enter 2 form.I want to put all input together .that work on firefox and chrome .but ie8 have problem

Upvotes: 0

Views: 96

Answers (1)

TijmenBrx
TijmenBrx

Reputation: 52

Declare a doctype. I'd encourage you to use the HTML5 doctype:

<!DOCTYPE html>

Upvotes: 1

Related Questions