CSS Question: Show Status Message

Discussion in 'Design and Graphics' started by EricBrian, Oct 10, 2009.

  1. EricBrian macrumors 6502a

    EricBrian

    Joined:
    Jul 30, 2005
    #1
    So, I am trying to figure out how to display a status message so that the user can see it. That is, even if the user scrolls to the very bottom of the document, the status message should still show at the top of the document window.

    Can somebody point to a resource? I've Googled quite a bit but can't seem to find a solution.

    Thanks
    Eric
     
  2. sigmadog macrumors 6502a

    sigmadog

    Joined:
    Feb 11, 2009
    Location:
    near Spokane, WA
    #2
    Just a thought...

    Code:
    .status {
    position: fixed
    }
     
  3. EricBrian thread starter macrumors 6502a

    EricBrian

    Joined:
    Jul 30, 2005
    #3
    I did it like so:

    Code:
    y1 = 100;
    document.getElementById("popUpDiv").style.top = window.pageYOffset + (window.innerHeight - (window.innerHeight-y1)) + "px";
    Found this somewhere on the intertubes.
     
  4. wfoster macrumors 6502a

    wfoster

    Joined:
    Feb 16, 2009
    Location:
    Plymouth, UK
    #4
    That isn’t CSS my friend.
     
  5. EricBrian thread starter macrumors 6502a

    EricBrian

    Joined:
    Jul 30, 2005
    #5
    I know. But it works! :)
     

Share This Page