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 6658753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:57:01+00:00 2026-05-26T01:57:01+00:00

I have a table structure like this <tr> <td> Text to move </td> </tr>

  • 0

I have a table structure like this

<tr>
    <td>
      Text to move
    </td>
</tr>
<tr>
    <td>
       <div>jQuery slider container is in here<a>slider pointer is in here</a></div>
    </td>
</tr>

When the slider moves I see the style is updated for the link element by a percentage representing how far to the right it is Ex: style="left: 11.7647%;" I want “text to move” to align itself with the slider, and also move by that percentage. Is there any way I can do this? I can add more divs/spans etc. if necessary.

Note: I know how to grab the percentage the slider has moved, the issue is just aligning it.

  • 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-26T01:57:01+00:00Added an answer on May 26, 2026 at 1:57 am

    Since you already know the percentage, you can set the text to have a left margin of that same percentage:

    $("#hoverText").css("margin-left", percent + "%");
    

    Here’s my working test code:

    HTML

    <table id="layoutTable" style="width:100%;">
      <tr>
        <td>Percent: <span id="percent"></span></td>
      </tr>
      <tr>
        <td style="width:100%;"><span id="hoverText">Here's Some Text</span></td>
      </tr>
      <tr>
        <td style="width:100%;"><div id="slider"></div></td>
      </tr>
    </table>
    

    JavaScript

    $(document).ready(function(){
      $("#slider").slider({
        "slide": function(event, ui) {
          var percent = ui.value;
          $("#percent").html(percent);
          $("#hoverText").css("margin-left", percent + "%");
        }
      });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I have a table structure like this: Transaction [TransID, ...] Document [DocID, TransID,
I have a table structure with columns like this [ID] [Name] [ParentId] [ParentName] The
I currently have a table structure that looks something like this(some details omitted): ColumnName
I have this table structure and would like to map it using Fluent Hibernate
I have a table with a structure like the following: LocationID AccountNumber long-guid-here 12345
I have table structure like this EnrollNo,Date,Time 1, 8-10-2011 12:00:32 , 13:12 1, 8-10-2011
I have a table in a database with a structure like this Keywords id
I have a table structured like this: <table> <tr id=id1 class=parent></tr> <tr class=id1></tr> <tr
I'm a bit confused on this. I have a data table structured like this:
I have 2 tables: posts tags Tags table is structured like this: post_id tag

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.