Click here to Skip to main content
15,880,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i try to create sub tabs in html but there is formatting is out .. In blank tab there is a sub tab conferences and also from conferences sub tab there is also two another sub tabs e.g. Conference 1 and conference 2 .. but conference 1 tab is not visible so how i done this below is html code

HTML
<div id="menu">
<ul class="navbar">
<li><a href="">TAB1</a></li>
<li><a href="#">TAB2</a>
<ul id="Ul1">
<li><a id="A1" href="">SUB1</a></li>
<li><a href="">SUB2</a></li>
<li><a href="">SUB3</a></li>
<li><a href="">SUB4</a></li>
<li><a href="">SUB5</a></li>
<li><a href="">SUB6</a></li>
<li><a href="">SYB7</a></li>
</ul>
</li>
<li><a href="">TAB3</a>
<ul id="Ul2">
<li><a id="A2" href="">SUB1</a></li>
<li><a href="">SUB2</a></li>
<li><a href="">SUB3</a></li>
</ul>
</li>
<li><a href="">tab4 </a></li>
<li><a>tab5</a>
<ul id="Ul4">
<li><a id="A4" href="">sub1 </a></li>
<li><a href="">sub2</a></li>
<li><a href="">sub3</a></li>
</ul>
</li>
<li>
<a href="">UP COMING EVENTS</a>
<ul id="Ul3">
<li class="b"><a id="A3" href="#">Conferences</a>
<ul class="c">
<li class="a"><a href="">I 2015 conference</a></li>
<li class="a"><a href="">Kuala Lampur conferences</a></li>
</ul>
</li>
<li><a href="">Workshps</a></li>
<li><a href="">Seminars</a></li>

</ul>
</li>

                 
<li><a href="">Research</a>
<ul id="subnavlist">
<li class="b"><a id="subcurrent" href="#">sub1</a>
<ul class="c">
<li class="a"><a href="">sub sub1</a></li>
</ul>
</li>
<li><a href="">sub2</a></li>
<li><a href="">sub3</a></li>
</ul>
</li>
 

<li id="active"><a href="">tab8</a></li>
</ul>
</div>



css
CSS
.navbar {
      height: 50px;
        border-right: 1px solid #54879d;
       
        margin: 0px;
        padding: 0px;
        position:absolute;
        margin-left:40px;
        
         
  }
	
	.navbar li 	{
			height: auto;
			width: 131px;  /* Each menu item is 150px wide */
			float: left;  /* This lines up the menu items horizontally */
			text-align: center;  /* All text is placed in the center of the box */
			list-style: none;  /* Removes the default styling (bullets) for the list */
			font: normal bold 12px/1.2em Arial, Verdana, Helvetica;  
			padding: 0;
			margin: 0;
			background-color: #366b82;
                        }
                        
                        
                        .navbar a	{							
		padding: 18px 0;  /* Adds a padding on the top and bottom so the text appears centered vertically */
		border-left: 1px solid #54879d; /* Creates a border in a slightly lighter shade of blue than the background.  Combined with the right border, this creates a nice effect. */
		border-right: 1px solid #1f5065; /* Creates a border in a slightly darker shade of blue than the background.  Combined with the left border, this creates a nice effect. */
		text-decoration: none;  /* Removes the default hyperlink styling. */
		color: white; /* Text color is white */
		display: block;
		}
		
		.navbar li:hover, a:hover {background-color: #54879d;} 
		
		
		.navbar li ul 	{
		display: none;  /* Hides the drop-down menu */
		height: auto;									
		margin: 0; /* Aligns drop-down box underneath the menu item */
		padding: 0; /* Aligns drop-down box underneath the menu item */			
		}				

.navbar li:hover ul 	{
                        display: block; /* Displays the drop-down box when the menu item is hovered over */
                        }
                        
                        .navbar li ul li {background-color: #54879d;} 
                        
                        
                        .navbar li ul li a 	{
		border-left: 1px solid #1f5065; 
		border-right: 1px solid #1f5065; 
		border-top: 1px solid #74a3b7; 
		border-bottom: 1px solid #1f5065; 
		}
				
.navbar li ul li a:hover	{background-color: #366b82;}

.navbar li ul li ul li {
      margin-top:-50px;
      margin-left:130px;
      display:block;
  }
  .b:hover .a {
      visibility:visible;
      display:block;
  }
  .a {
      margin-top:-5px;
      visibility:hidden;
      display:none;
  }


image
image[^]
anyone tell me please
Posted
Updated 2-Jan-15 21:13pm
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900