473,785 Members | 3,137 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Uneven line spacing between node of tree view

28 New Member
I am developing a tree view like application using HTML. The problem is that although I am using the same CSS styles for both parent and child node at sub level, but there is an uneven line spacing between parent and child nodes, when parent node in collapsed i.e.

EXPANDED TREE STATE:-

-Parent Node
-Sub-Parent Node.
-Child 1 of Sub-Parent Node.
. Desc of Child 1
-Child 2 of Sub-Parent Node.
. Desc of Child 2
-Child 1 of Parent Node.
. Desc of Child 1
-Child 2 of Parent Node.
. Desc of Child 2
-Child 3 of Parent Node.
. Desc of Child 3
COLLAPSED TREE STATE:-

-Parent Node
+Sub-Parent Node.
//Uneven line space here.
+Child 1 of Parent Node.
+Child 2 of Parent Node.
+Child 3 of Parent Node.
I have already used ‘line-height’ property in CSS style but not getting the results.
Aug 30 '10 #1
2 2501
JKing
1,206 Recognized Expert Top Contributor
I would need to see the HTML and CSS or a link to your page to give you any valuable advice.
Aug 30 '10 #2
Developer111
28 New Member
Thanks for your reply. Actually, i have solved the problem. The uneven line spacing was because of an extra DIV which i have put in the HTML code.
Aug 31 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
10825
by: imani_technology_spam | last post by:
We need to present hierarchical data on a web page, the same way the tree view shows files in Windows Explorer. Here's the catch: that tree view needs to be bound to a SQL Server database. How can this be done?
12
20532
by: Dino L. | last post by:
I am putting data from DataTable to treeView foreach( DataRow aRow in aTable.Rows) { TreeNode tnode = new TreeNode(aRow.ToString() + aRow.ToString() + " " + aRow.ToString()); treeView1.Nodes.Add(tnode); //till here code works fine //now I wanna add child nodes for last inserted node foreach( DataRow GrupaRow in TabelaGrupe.Rows)
3
1590
by: Alan Silver | last post by:
Hello, I am just looking at the tree view control, which looks very good, but has some apparent limitations. This could easily be my lack of experience with it. Specifically, I have two questions... 1) I would like to have more than one root for the tree. Although this may sound odd, it can be logical in certain cases. For example, I have some e-commerce sites where the navigational links are split into two sections, one containing...
6
9960
by: Kishor | last post by:
Hi, In Visual basic6 there are so many grids using which we can display the tree structure (Multiple column). Same thing I am planning to display the result of query in a tree format, instead of grid. I wanted to know how to convert this data grid in to a tree view?. I am using vb.net as a development language. I am having records in this format
5
11816
by: Pavan | last post by:
My goal is to accomplish the tooltip functionality for all the neodes in a tree view and i have the following three Events in my C# application. Name of my TreeView Control (AITreeView) 1) AITreeView_MouseDown(object sender, MouseEventArgs e) 2) AITreeView_MouseUp(AITreeView_MouseDown(object sender, MouseEventArgs e) 3) AITreeView_Click(AITreeView_MouseDown(object sender, MouseEventArgs e)
1
3348
by: quantass | last post by:
Just a quick question in regards to the Obout Tree View. How do i go about adjusting the horizontal spacing before & after the plus/minus button for each node seperately? Also how do i adjust the vertical spacing for each node seperately? Thanks.
3
1141
by: Omar Abid | last post by:
Hi, I'm using a tree view to manage my tables. The nodes are made dynamiclly, the problem that I want to create an event when I select a node. I used the code below treeview.selectednode.index = 0 but when I use that code the event run on all nodes and children nodes I want to associate an index to each node to resolve that problem Does any one had solution Omar Abid
3
2377
by: gmail | last post by:
Hi Friends, Can any body suggest me on this. I am working on .NET 2005 Frame work 2.0 . I am facing problem using the tree stucture. I created the site map.Now i want use the site map in every page by keeping the tree structure in master page. Note: tree structure is created success fully. Now i want it display the output in the iframe which is besides the tree structure. That tree structure should display in every page with out hard...
1
4791
by: BeginingOfLife | last post by:
i am using a java script to create a tree view in my html page. i got that script from this link : http://destroydrop.com/javascripts/tree/ given script is static script creations for tree view,but i want to add a new node on that tree. i select a node location in a dropdown control(nodes present in a tree will appear in this control). i will give the new node name in a text box control. when i press a button in my html page
0
9643
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10315
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10085
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5379
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4045
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.