Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jan 2009
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question position:fixed not working

    Hi everyone.

    I am using firefox, and for some reason position:fixed is not working. I get a pop-up pane, but it scrolls.

    The code for the popup pane is located inside a table. I know that's a strange place to put it considering that I want its position fixed with respect to the whole page but could that be an issue? But I tried putting it at the top of my <body> and it still isn't working.

    The pane does happen to be inside an iframe, could that be an issue?

    Also the style is inline. Here is the code anyway...

    Code:
    <div id="viewEditPane" name="viewEditPane" style="position:fixed; z-index:10; visibility:hidden; top:100px; left:50px;">
    <table  background="mpSitePics/beige-marble-2.jpg" id="viewEditTable" name="viewEditTable" width="400px" style=" border-style:solid; border-width:2px; border-color:black;">
    <tr><td id="vetd" name="vetd" height="400px" >View Edit Pane</td></tr>
    <tr><td><input type="button" value="Close" onClick="document.getElementById('viewEditPane').style.visibility='hidden';"></td></tr>
    </table>
    </div>

  • #2
    New Coder
    Join Date
    Jan 2009
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Smile the div tage

    just to make it easier to see... here's the crucial bit.. the div tag:

    Code:
    <div id="viewEditPane" name="viewEditPane" style="position:fixed; z-index:10; visibility:hidden; top:100px; left:50px;">

  • #3
    Regular Coder
    Join Date
    Dec 2008
    Location
    Tannhäuser Gate
    Posts
    286
    Thanks
    7
    Thanked 58 Times in 57 Posts
    You may want to put the IFRAME in a fixed position DIV. Posting a link to your page to have a better look would be nice


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •