position style

Joined
Jul 25, 2008
Messages
2
Reaction score
0
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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,733
Messages
2,569,440
Members
44,829
Latest member
PIXThurman

Latest Threads

Top