Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. positioning issue in IE9

positioning issue in IE9

Scheduled Pinned Locked Moved Web Development
cssdatabasehelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    siva455
    wrote on last edited by
    #1

    Hi, i have used the below css class to display menu(onmouse over of a button)

    .p-menu
    {
    z-index: 50; position:absolute; display: none; top:0px; left:0px;
    }

    the above works fine in IE8 where as in IE9 it goes top left corner of the browser.... please let me know any suggestion...

    G 1 Reply Last reply
    0
    • S siva455

      Hi, i have used the below css class to display menu(onmouse over of a button)

      .p-menu
      {
      z-index: 50; position:absolute; display: none; top:0px; left:0px;
      }

      the above works fine in IE8 where as in IE9 it goes top left corner of the browser.... please let me know any suggestion...

      G Offline
      G Offline
      Gerben Jongerius
      wrote on last edited by
      #2

      Position absolute places the element relative to the first 'relative' parent element it finds. So if you have the following structure:

      And you position div3 absolute it will be positioned relative from the coordinates of the body element. Now lets say you provide the following style to div1 position: relative. Then all of a sudden div3 will be positioned relative to the topleft coordinate of div1.

      E 1 Reply Last reply
      0
      • G Gerben Jongerius

        Position absolute places the element relative to the first 'relative' parent element it finds. So if you have the following structure:

        And you position div3 absolute it will be positioned relative from the coordinates of the body element. Now lets say you provide the following style to div1 position: relative. Then all of a sudden div3 will be positioned relative to the topleft coordinate of div1.

        E Offline
        E Offline
        Ed Nutting
        wrote on last edited by
        #3

        Just read this and would like to add that there the issue is not IE9 but IE8 not conforming to standards (as per usual) and thus giving you different displays X|

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups