I have used position style inside <div> tag as below:
<div style="width:145px; height:25px; margin:100px; overflow=auto;">
<div style="width:145px; position:absolute; top:0px; right:0px;">
<select style="overflow:scroll;" name="abcd" id="abcd"> <option value="" selected="true"> Select one</option>
<option id="one" value="one">Dummy Data - Dummy Data 1</option>
<option id="two" value="two">Dummy Data - Dummy Data 2</option>
</select>
</div>
</div>
It works in IE7.0 without any docType (DTD) but if I put any DTD with this code, it does not work at all in IE. Also it does not work at all in Mozila-Firefox.
Any help would be appreciated.
<div style="width:145px; height:25px; margin:100px; overflow=auto;">
<div style="width:145px; position:absolute; top:0px; right:0px;">
<select style="overflow:scroll;" name="abcd" id="abcd"> <option value="" selected="true"> Select one</option>
<option id="one" value="one">Dummy Data - Dummy Data 1</option>
<option id="two" value="two">Dummy Data - Dummy Data 2</option>
</select>
</div>
</div>
It works in IE7.0 without any docType (DTD) but if I put any DTD with this code, it does not work at all in IE. Also it does not work at all in Mozila-Firefox.
Any help would be appreciated.