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
    Regular Coder
    Join Date
    Jul 2010
    Location
    Sheffield
    Posts
    824
    Thanks
    93
    Thanked 18 Times in 18 Posts

    Force div bottom right

    I need to make a div always appear in the bottom right of my screen, i currently have this

    Code:
    div.botright{
        display:block;
    
        /*set the div in the bottom right corner*/
        position:absolute;
        bottom:0;
        right:0;
        width:350px;
        
        /*give it some background and border*/
        background:#eee;
        border:1px solid #ddd;
      }
    which send its there to start with, but if when i scroll down it moves up the page, how can i force the div to always be at the bottom even after scrolling?

  • #2
    Registered User
    Join Date
    Jun 2011
    Posts
    1,063
    Thanks
    12
    Thanked 241 Times in 240 Posts
    position: fixed should work

  • Users who have thanked Sammy12 for this post:

    tomharto (08-11-2011)

  • #3
    Regular Coder
    Join Date
    Jul 2010
    Location
    Sheffield
    Posts
    824
    Thanks
    93
    Thanked 18 Times in 18 Posts
    Genius, thank you


  •  

    Posting Permissions

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