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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T20:25:47+00:00 2026-06-18T20:25:47+00:00

I am having trouble regarding the layout of HTML table columns when added with

  • 0

I am having trouble regarding the layout of HTML table columns when added with a jQuery. I have two columns in my table, the left one for the menu and the right one is an iframe that changes its contents.

What I want to do is fix the position of the menu column even when vertically scrolling the content column using jQuery. I have successfully done this using this jQuery code,

jQuery(function($) {

    var nav    = $('#main_menu'),
        offset = nav.offset();

    $(window).scroll(function () {
      if($(window).scrollTop() > offset.top - 50) {
        nav.addClass('fixed');
      } else {
        nav.removeClass('fixed');
      }
    });

}); 

however the content column overlaps with the menu column. Thus, the content column goes completely under the menu column. I want the content column to be fixed also beside the menu column but still scrollable.

However, this only happen when the browser screen is smaller than the page. Below is the jsFiddle code. I am viewing this Mozilla Firefox but the page should be also compatible with IE 7 and above.

http://jsfiddle.net/Aym72/7/

Scroll down the Result and then horizontally scroll to the right.
Hope you can help me.

  • 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-06-18T20:25:48+00:00Added an answer on June 18, 2026 at 8:25 pm

    This is very bad design.

    [http://jsfiddle.net/SFZwx/][1]

    [1]: http://jsfiddle.net/SFZwx/ this works true.

    Should be position: absolute; instead of position: fixed;.

    And update layer’s left and top attributes for each scrolls.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having trouble understanding the Phing documentation regarding multiple conditions for a given
I am having trouble tracking down information regarding extending Intellisense. It looks like creating
im having trouble linking .h and .c files, i've also read some threads regarding
I've been having a lot of trouble with this problem. I have a listview
I am having trouble regarding three functions called within my main function in my
I'm having some trouble regarding a rest request sent from my Windows Phone app
I am new to jQuery and having some trouble trying to get the success
I'm having trouble regarding speed in a SELECT query on a Postgres database. I
I'm having trouble in finding information regarding on how to implement Twitter login with
I am having trouble getting this code to run using Google Chrome(I have not

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.