Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialRohini Loya
7,495 PointsBrand icon in navbar not aligned properly in medium and smaller screens.
I am using an svg image as a brand icon for my website. However the image does not hold its position in medium and smaller screens. The image falls down and is not consistent in all the screens.
Below is the HTML
<!-- navbar-->
<nav class="navbar fixed-top navbar-toggleable-md navbar-inverse bg-inverse ">
<div class="container">
<button class="navbar-toggler navbar-toggler-right mt-3" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<a class="navbar-brand" href="#"><img src="assets/brand/200px_polygon_letter_H.svg" style="width: 50px; height: 50px;" class="d-inline-block align-top" alt=""></a>
<a class="navbar-brand hidden-xs-down" href="#">Hello World<br><small>Welcome to Bootstrap</small></a>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="#home">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#portfolio">Work</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#about">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#contact">Contact</a>
</li>
</ul>
</div>
<!-- /collapse -->
</div>
<!-- /container -->
</nav>
<!-- /navbar-->
CSS -
.navbar { min-height: 100px; }
Rohini Loya
7,495 PointsBelow is my CSS -
.navbar { min-height: 100px; }
Ezra Siton
12,644 PointsHi. You will get the best answer if you create a workspace (or Codepen). Only html and one CSS decleration it's not enough).
https://teamtreehouse.com/library/using-treehouse-workspaces
Julian Gutierrez
19,201 PointsJulian Gutierrez
19,201 PointsHITESH GANDHI can you provide your css?