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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T19:16:09+00:00 2026-06-07T19:16:09+00:00

Have a tree menu made using nested ULs 3 levels deep. The bottoms 2

  • 0

Have a tree menu made using nested ULs 3 levels deep. The bottoms 2 levels are hidden/collapsed by default. The bottom 3rd level shows a comparison of a “left” versus “right” value. I want to make all of the “left” spans the same width, but not a fixed width. I thought about a jquery loop to find the max width of all such spans, then go back and set them all to that max width. But when hidden, jquery width() is always 0. So I would have to expand the whole list first, do this work, then collapse it again. Even then, setting the width via jquery didn’t seem to do anything. The spans have a style=”width: 93px;” in them, but the actual width didn’t change. Is there any CSS2/3 way of linking the width of these elements? Or a better javascript way?

<ul class="hidden">
  <li>
    <span class="left">cat</span>
    &hArr;
    <span class="right">dog</span>
  </li>
  <li>
    <span class="left">bird</span>
    &hArr;
    <span class="right">horse</span>
  </li>
  <li>
    <span class="left">some long text</span>
    &hArr;
    <span class="right">more long text</span>
  </li>
</ul>

span.left{text-align:right;}
ul.hidden{display:none;}
  • 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-07T19:16:12+00:00Added an answer on June 7, 2026 at 7:16 pm

    You can use the CSS properties for displaying as table cells (e.g. http://ajaxian.com/archives/display-table) but really, you’re describing what is semantically a table. Why not just use table markup? It’s not cursed or anything.

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

Sidebar

Related Questions

Wow. I have been asked to add a 3rd level to a tree menu
I'm using nested set model for my menu tree, and I'm trying to get
I am using jstree to build a tree menu. When you select an item
I want to generate a tree-based menu using Java that will appear on a
I have a tree that is used as menu, so every node is clickable
I have a Tree View as a main menu. After program start, I add
I am writing some UI tests using Selenium and i have a JavaScript Tree
I have created a Layout using ExtJs. It consists of a left menu and
I have a tree structure menu. What I am trying to achieve is to
I have a tree panel and I want to show context menu to each

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.