Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
iam using bootstrap v3.3.7 .

and iam write this html code:-

HTML
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

	<title>White Whale</title>
	
	<!-- Bootstrap Core CSS -->
    <link href="css/bootstrap.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="css/shop-homepage.css" rel="stylesheet">

    <!-- jquery.js V 1.11.1 -->
    <script src="js/jquery.js"></script>

    <!-- bootstrap.js V 3.3.7  -->
    <script src="js/bootstrap.js"></script>
</head>
<body>
    <!-- Navigation -->
    <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
        <div class="container">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">White Whale</a>
            </div>
            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                    <li>
                        <a href="#">About</a>
                    </li>
                    <li>
                        <a href="#">Services</a>
                    </li>
                    <li>
                        <a href="#">Contact</a>
                    </li>
                </ul>
                <ul class="nav navbar-nav navbar-right">
                	<li>
                		<a href="#">
                			<span class="badge pull-right">4</span>
                			
                        </a>
                    </li>
                    <li>
                        <a href="#">
                        	^__i class="glyphicon glyphiconuser">
                        </a>
                    </li>
                    <li>
                        <a href="#" data-toggle="modal" datatarget="#myModal">
                        	Sign in
                        </a>
                    </li>
                </ul>
            </div>
            <!-- /.navbar-collapse -->
        </div>
    </nav>
</body>
</html>


What I have tried:

How i make this navbar is small high
Posted
Updated 19-Apr-17 1:24am

add below style in head section of your code

  <style>
            .navbar-nav > li > a {padding-top:5px !important; padding-bottom:5px !important;}
            .navbar {min-height:32px !important}
</style>
 
Share this answer
 
do you want to decrease the height of navbar ?
 
Share this answer
 
Comments
AnvilRanger 19-Apr-17 8:17am    
This is not a solution and you should delete it. To ask the author of the post a question use the "Have a Question or Comment?" link .

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