position style

Discussion in 'HTML and CSS' started by jayman, Jul 25, 2008.

  1. jayman

    jayman

    Joined:
    Jul 25, 2008
    Messages:
    2
    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.
    jayman, Jul 25, 2008
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Luqman
    Replies:
    1
    Views:
    654
    Luqman
    Feb 7, 2006
  2. Ken Varn
    Replies:
    0
    Views:
    443
    Ken Varn
    Apr 26, 2004
  3. James Wong
    Replies:
    4
    Views:
    494
    James Wong
    Jul 14, 2004
  4. Amir Hardon
    Replies:
    0
    Views:
    258
    Amir Hardon
    May 31, 2004
  5. edouard.lauer@pt.lu

    position image based on document position

    edouard.lauer@pt.lu, Jan 13, 2006, in forum: Javascript
    Replies:
    3
    Views:
    182
Loading...

Share This Page