Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7536217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:30:52+00:00 2026-05-30T06:30:52+00:00

Is there a jQuery plugin, or other JS library, for making certain elements have

  • 0

Is there a jQuery plugin, or other JS library, for making certain elements have a fixed horizontal position, while allowing a variable vertical position?

I have a rather wide tabular form, and each row in the form has a label. When the user scrolls horizontally, I’d like to fix the label to the left-hand side so that its always visible, allowing the user to quickly identify the row they’re working on.

I’ve searched without much success, even though I’ve found a few examples of doing the opposite (i.e. fixed vertical position while allow horizontal scrolling as in ScrollToFixed).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T06:30:54+00:00Added an answer on May 30, 2026 at 6:30 am

    For my application, I found all I needed to do was update the left CSS attribute proportional to the current scroll position. I did this using the following JS:

    <script language="javascript" src="jquery-1.4.3.js"></script>
    <script language="javascript" src="jquery.inview.js"></script>
    <script type="text/javascript">
        (function($){
            $(document).ready(function($){
    
                // Record initial positions of all elements.
                $('<pattern>').each(function(i){
                    var el = $(this);
                    var offset = el.offset();
                    el.attr('_left', offset.left);
                    el.attr('_top', offset.top);
                });
    
                // Detect when elements become visible.
                $('<pattern>').bind('inview', function (event, visible) {
                    var el = $(this);
                    if (visible == true){
                        el.addClass('_fixed_label');
                    } else {
                        el.removeClass('_fixed_label');
                    }
                });
    
                // Update elements when the scroll position changes.
                $(window).scroll(function(event) {
                    var x = $(this).scrollLeft();
                    $('<pattern>._fixed_label').each(function(i){
                        var el = $(this);
                        el.css('left', x);
                    });
                });
    
            });
        })(jQuery);
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a jQuery plugin or javascript library that supports a genie animation effect
I have a small jQuery plugin that I use for form AJAX validation. There
These ribbon in stackoverflow and uservoice.com looks nice. is there any javascript library/jquery plugin
Is there a Javascript library (preferably a jQuery plugin) or simple mechanism to check
I'm writing a jquery-plugin, that changes a css-value of certain elements on certain user-actions.
Is there any jquery plugin for implementing iGoogle style dashboard? So basically drag n
Is there a jquery plugin that when you hover over an icon etc. it
Is there any jQuery plugin for progressive light glow effect like this ?
Is there a jquery way or plugin to detect the visitor's browser window size
When writing a new jQuery plugin is there a straightforward way of checking that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.