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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T01:06:13+00:00 2026-05-15T01:06:13+00:00

i have used the popular treemenu plugin for my project ,but the only problem

  • 0

i have used the popular treemenu plugin for my project ,but the only problem i have is with direction .

as you may see , it shows menus in LTR direction and icons of folder and file floating left side

http://jquery.bassistance.de/treeview/demo/

question is how can i change the directio to rtl

believe me , it takes me one day to play with codes but not worked at last

i asked in jquery forum , but it takes 1 week just to accept my question , let alone answering it

however i know , this may be a lot to ask , but help me , if you have time

  • 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-15T01:06:13+00:00Added an answer on May 15, 2026 at 1:06 am

    All you need to do is modify the CSS to get the treeview to work. But because the plugin uses image sprites, the icons won’t work very well on RTL pages, so I had to split them apart.

    I made a demo with the resultant CSS (seen below)… and you can download a zip file of the demo from here.

    Note: I did not modify the jquery.treeview.js file at all.

    .treeview, .treeview ul { 
      padding: 0;
      margin: 0;
      list-style: none;
    }
    
    .treeview ul {
      background-color: white;
      margin-top: 4px;
    }
    
    .treeview .hitarea {
      background: url(rtl-treeview-default-c.gif) 0 2px no-repeat;
      height: 16px;
      width: 16px;
      margin-right: -16px;
      float: right;
      cursor: pointer;
    }
    /* fix for IE6 */
    * html .hitarea {
      display: inline;
      float:none;
    }
    
    .treeview li { 
      margin: 0;
      padding: 0px 16px 2px 0px;
    }
    
    .treeview a.selected {
      background-color: #eee;
    }
    
    #treecontrol { margin: 1em 0; display: none; }
    
    .treeview .hover { color: red; cursor: pointer; }
    
    .treeview li { background: url(rtl-treeview-default-line.gif) 100% -2px no-repeat; }
    .treeview li.collapsable, .treeview li.expandable { background-position: 100% -177px; }
    
    .treeview .expandable-hitarea { background: url(rtl-treeview-default-e.gif) 0 2px no-repeat; }
    .treeview li.last { background-position: 100% -1768px }
    .treeview li.lastCollapsable, .treeview li.lastExpandable { background: url(); }
    .treeview div.lastCollapsable-hitarea { background: url(rtl-treeview-default-lc.gif) 0 0 no-repeat; }
    .treeview div.lastExpandable-hitarea { background: url(rtl-treeview-default-le.gif) 0 0 no-repeat; }
    
    .treeview-red li { background-image: url(rtl-treeview-red-line.gif); }
    .treeview-red .hitarea { background-image: url(rtl-treeview-red-c.gif); }
    .treeview-red .expandable-hitarea { background-image: url(rtl-treeview-red-e.gif); }
    .treeview-red div.lastCollapsable-hitarea { background-image: url(rtl-treeview-red-lc.gif); }
    .treeview-red div.lastExpandable-hitarea { background-image: url(rtl-treeview-red-le.gif); } 
    
    .treeview-black li { background-image: url(rtl-treeview-black-line.gif); }
    .treeview-black .hitarea { background-image: url(rtl-treeview-black-c.gif); }
    .treeview-black .expandable-hitarea { background-image: url(rtl-treeview-black-e.gif); }
    .treeview-black div.lastCollapsable-hitarea { background-image: url(rtl-treeview-black-lc.gif); }
    .treeview-black div.lastExpandable-hitarea { background-image: url(rtl-treeview-black-le.gif); } 
    
    .treeview-gray li { background-image: url(rtl-treeview-gray-line.gif); }
    .treeview-gray .hitarea { background-image: url(rtl-treeview-gray-c.gif); }
    .treeview-gray .expandable-hitarea { background-image: url(rtl-treeview-gray-e.gif); }
    .treeview-gray div.lastCollapsable-hitarea { background-image: url(rtl-treeview-gray-lc.gif); }
    .treeview-gray div.lastExpandable-hitarea { background-image: url(rtl-treeview-gray-le.gif); } 
    
    .filetree li { padding: 0px 16px 2px 0; }
    .filetree span.folder, .filetree span.file { padding: 0px 16px 2px 0; display: block; }
    .filetree span.folder { background: url(rtl-folder.gif) 100% 0 no-repeat; }
    .filetree li.expandable span.folder { background: url(rtl-folder-closed.gif) 100% 0 no-repeat; }
    .filetree span.file { background: url(rtl-file.gif) 100% 0 no-repeat; }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have used a plugin that uses prototype js, it's working fine but the
I have used the silverlight control in CRM 2011.It also published on form but
I have used NSSets many times in my apps, but I have never created
I have used auto complete textbox previously. That auto complete works only when i
I have used geocoder in my ruby on rails application for a while but
I have never used PHP with CLI, but I have seen scripts running with
I am using a popular module called Computed Field in Drupal. I have used
I am still relatively new to git, have only used basic features. I have
I have what I think it is a very popular problem. I have a
We have used Shibboleth to authenticate users. It works great. The issue is 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.