Jump to content

[SOLVED] connection of parent node and child node


sandy1028

Recommended Posts

only thing I can think of - and its probably not ideal but still fairly simple....

 

<ul>
<li class="live">1
<ul>
  <li class="live">1.1
  <ul>
   <li>1.1.1</li>
  </ul>
  </li>
  <li>1.2</li>
</ul>
</li>
<li>2</li>
</ul>

 

ul { border-left: 1px dotted #666; }
li.live { background: transparent url(path/to/closed/image) no-repeat 0 10px; }
ul li ul { display: none; }
li.live { li.live { background: transparent url(path/to/open/image) no-repeat 0 10px; }
li.live ul { display: block; }

 

Have a play around with that - and create images that you want to show the item is open...

Link to comment
Share on other sites

Hi,

 

I am getting extra dotted  line how to remove it and how to draw the horizontal dotted line

 

<style>
ul { border-left: 1px dotted #666; }
li.live { background: transparent url(path/to/closed/image) no-repeat 0 10px; }
ul li ul { display: none; }
li.live { li.live { background: transparent url(path/to/open/image) no-repeat 0 10px; }
li.live ul { display: block; }
</style>

<ul>
<li class="live">1
<html>
<body> 
<ul>
  <li class="live">1.1
  <ul>
   <li>1.1.1</li>
  </ul>
  </li>
  <li>1.2</li>
</ul>
</li>
<li>2</li>
</ul>
</body>
</html>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.