Results 1 to 2 of 2

Thread: Fixed button

  1. #1
    Join Date
    Jan 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Fixed button

    Hello.
    Please teach me how i can make a button in the left windows, middle position, but this button stay fixed always on top. If the page is scrooled, the button stay fixed?
    Thank you.

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Add this to the style of the element you want to be fixed:
    Code:
    div#example {
    position: fixed;
    left: 50px;
    top: 100px;
    }
    You can then change the values to place it where you want. IE6 has some problems with fixed positioning so if you really need it to work in IE6 as well you will need to use a hack, let me know and I'll teach you.

    Good luck!

Bookmarks

Posting Permissions

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