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...

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>

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.