in Education by

Explain the use of Bootstrap CSS class="navnav-list".

1 Answer

0 votes
by

You need to add the nav-list class in addition to the nav class that will make it look like a list. And adding class nav-header to any element of the nav class will make it look like a heading to the section of links. The HTML File looks as in the following, 

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">  
  2. <html>  
  3.   
  4. <head>  
  5.     <title></title>  
  6.     <script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>  
  7.     <link href="Bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css" />  
  8.     <script src="Bootstrap/js/bootstrap.min.js" type="text/javascript"></script>  
  9. </head>  
  10.   
  11. <body>  
  12.     <ul class="navnav-list">  
  13.         <li class="nav-header">Category</li>  
  14.         <li><a href="#">.NET</a></li>  
  15.         <li><a href="#">ASP.NET</a></li>  
  16.         <li><a href="#">Silverlight</a></li>  
  17.         <li><a href="#">WCF</a></li>  
  18.         <li class="nav-header">Database</li>  
  19.         <li><a href="#">SQL Server</a></li>  
  20.         <li><a href="#">Oracle</a></li>  
  21.         <li><a href="#">MySQL</a></li>  
  22.     </ul>  
  23. </body>  
  24.   
  25. </html>  

Now see how the list is rendering.

see how the list is rendering

Related questions

0 votes
    Explain the Bootstrap basic table?...
asked Apr 4, 2021 in Education by JackTerrance
0 votes
    Explain Bootstrap buttons and its styles....
asked Apr 4, 2021 in Education by JackTerrance
0 votes
    Explain the basic structure of the Bootstrap grid....
asked Apr 4, 2021 in Education by JackTerrance
0 votes
    Explain Bootstrap Grid System....
asked Apr 4, 2021 in Education by JackTerrance
0 votes
    How can you give a style to images in Bootstrap?...
asked Apr 4, 2021 in Education by JackTerrance
0 votes
    What are Containers in Bootstrap?...
asked Apr 4, 2021 in Education by JackTerrance
0 votes
    What are the advantages of Bootstrap?...
asked Apr 4, 2021 in Education by JackTerrance
0 votes
    How can we create a dropdown menu in Bootstrap?...
asked Apr 4, 2021 in Education by JackTerrance
0 votes
    How can you create Fixed Layout with Bootstrap?...
asked Apr 4, 2021 in Education by JackTerrance
0 votes
    How can you create a web page using Bootstrap?...
asked Apr 4, 2021 in Education by JackTerrance
0 votes
    How can you get Bootstrap?...
asked Apr 4, 2021 in Education by JackTerrance
0 votes
    Why choose Bootstrap for building websites?...
asked Apr 4, 2021 in Education by JackTerrance
0 votes
    What is Bootstrap?...
asked Apr 4, 2021 in Education by JackTerrance
0 votes
    What do you understand about Responsive websites?...
asked Apr 4, 2021 in Education by JackTerrance
0 votes
    Which of the following class in Bootstrap is used to create a basic list group? .grouped-list .select-list .list-group .list-grouped...
asked Mar 2, 2021 in Technology by JackTerrance
...