Results 1 to 2 of 2

Thread: help required for static menu image button

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

    Default help required for static menu image button

    Suggest some way how to keep some 'image link' static on a website page even when user scrolls page in any direction.
    An example of this functionality is campusfever[dot]com
    On this page the links of twitter,facebook etc reamins static even the page is scrolled.

    How to achieve this functionaltiy ,do suggest some ways out.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Use css style in the head of the page like:

    Code:
    <style type="text/css">
    .someSelector {
    	position: fixed;
    	top: 45px;
    	left: 50px;
    }
    </style>
    With markup like so as the first thing in the body of the page:

    HTML Code:
    <div class="someSelector">
    
    <a href="http://www.whatever.com/">Whatever"</a>
    
    </div>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •