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 6 of 6
  1. #1
    Regular Coder
    Join Date
    Dec 2005
    Location
    UK
    Posts
    207
    Thanks
    6
    Thanked 2 Times in 2 Posts

    Question Fixed button position in browser window

    Hi

    I want to have a button which is permanently visible at the bottom right of the browser window and does not move when the rest of the page is scrolled.

    Could anyone point me in the right direction as to how this can be done without using frames.???

    Thanks

    Tom

  • #2
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    It's a little tricky to work in all Internet Explorer browsers but there are ways around it.

    Here's an example I coded up for another thread but I think you can find what you need out of it:

    http://richardmedek.com/temp/example18.htm

    Hope this helps...

  • #3
    New Coder
    Join Date
    Dec 2004
    Posts
    81
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This works in FF and IE, haven't checked any others.
    Code:
    <input type="button" style="position:fixed;bottom:0;left:0;" value="test">
    -Bill

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    IE doesn't support position:fixed; yet.

  • #5
    New Coder
    Join Date
    Dec 2004
    Posts
    81
    Thanks
    0
    Thanked 0 Times in 0 Posts
    A clarification thats IE Mac.Works as expected.
    Don't know about Win IE.

    -Bill

  • #6
    Regular Coder Masterslave's Avatar
    Join Date
    Dec 2005
    Posts
    287
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Maybe you can find here usefull information:
    http://tagsoup.com/-dev/null-/css/fixed/


  •  

    Posting Permissions

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