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

  • Home
  • SEARCH
  • 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 6935173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:04:04+00:00 2026-05-27T12:04:04+00:00

UL/OLs are can be easily styled/displayed for their natural flow i.e.: Root Level 1

  • 0

UL/OLs are can be easily styled/displayed for their natural flow i.e.:

  • Root
    • Level 1 Item 1
    • Level 1 Item 2
      • Level 1.1 Item 1
      • Level 1.1 Item 2
        • Level 1.1.1 Item 1
    • Level 1 Item 3

And so on…

…now we have a peculiar requirement to show this like a tree (like how one visualizied binary search trees) with the root at the top and the children nodes below it and so on all the way up to the leaf.

It’s argued that that’s a better way of presentation of the content (each li is max 50 characters long). It’s kinda more intuitive to see a top-down decomposition like tree structure with the root at the top.

So the question is this: What’ the most effective way to show the above list content as a top-down tree (instead of left-to-right as per the natural layout).

We can’t (and don’t want) to use images. The users enter the data in a form like box and it shows up at the point of insertion (think of facebook comment-like feature for nested lists). Is there any way to ‘transform’ this using CSS, Javascript/Jquery into a tree like view?? (or create it ‘as we move along’?). There cannot be a limit to the depth, but sideways scrolling is acceptable.

In the natural layout (L-R) we can achieve the visual cue of children through indentation, color-coding and creative use of the border-visibility. I’m at my wits’ end for even being able to display this visually like a tree with just HTML/CSS + javascript constructs. No experience in doing this.

Any ideas/directions/pointers to articles/plug-ins to use/Off the shelf solutions etc., would be greatly appreciated!

  • 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-27T12:04:05+00:00Added an answer on May 27, 2026 at 12:04 pm

    I’m pretty sure this is what you’re looking for:

    http://thejit.org/demos/

    Try the SpaceTree in the middle, right. Note the custom style animations available, and the possibility to rearrange on demand the graph. Overall, that is a really cool project. :)

    To use it with your list, you would need to hide the list and then create a native JS object (note, it’s not a JSON object regardless of what the variable is called in the code behind) and populate it as you iterate over the UL and children. But it’s very doable.

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

Sidebar

Related Questions

I can extract the p-values for my slope & intercept from an ols object
I need to perform some basic OLS regression using F#. To do this I
I would like to use jQuery to make this: <ol> <li>item a</li> <li>item b</li>
I have the academic distribution of EPD 7.1 for MacOS 10.6.x , which has
Yesterday I worked up an example of the difference between Ordinary Least Squares (OLS)
The code below works as intended, but it's not quite what I need. I
I get the following error when I try and serve css or javascript via
If I do data(mtcars) m1 <- lm(mpg ~ cyl, data= mtcars, x= TRUE, y=
I'm looking for a way to produce a non-linear (preferably quadratic) curve, based on
I was trying to automate a piece of my code so that programming become

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.