1. This website uses cookies. By continuing to use this website you are giving consent to cookies being used.
    For information on cookies and how you can disable them visit our Cookie Usage page.
    Dismiss Notice

HTML how to position div over table

Discussion in 'Web Development' started by Washington, Nov 23, 2009.

  1. Washington

    Washington Banned

    Hi all ,
    I am trying to place a div tag over the table. My div tag has horizontal and vertical scroll bars and it works fine as long as the table cells having "position:absolute". However for a critical reason I want to change the position attribute of the specified table cells to fixed i.e. position:fixed.
    However once I set the position attribute to fixed , the table column come out of the div tag. Is there any way we can avoid this. May be z-index can help . I tried using that. But it was not working.
    Thanks in advance
    __________________
     
  2. jasonmorgan

    jasonmorgan Banned

    that's a tough one, you're doing some stuff that was never meant to be done.
     
  3. enigma1

    enigma1 New Member

    you could use negative margins, but in essence is like making the elements with absolute positioning again. What's the reason the position:absolute cannot be used?