Search code examples
htmlcssangularjstwitter-bootstrapangular-strap

Cannot add svg logo to navbar using angular-strap


Basing on the documentation, I've created a simple navbar with image instead of text for "brand". However, my .svg image isn't visible. Why?

SSCCE: http://plnkr.co/edit/bb2bBv0dD67fFBSpS5uH

Solution from ->THIS<- question doesn't work.

Since all code from plnkr have to be accomapanied by code, let me paste(probably) the most crucial part:

Toggle navigation

            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                    <ul class="nav navbar-nav">
                            <li>
                                    <button type="button" class="btn btn-lg btn-primary" data-animation="am-flip-x" bs-dropdown="networks_dropdown">
                                            Networks
                                    </button>
                            </li>
                            <li class="active">
                                    <a href="#">Workplace</a>
                            </li>
                            <li>
                                    <a href="#">Generate</a>
                            </li>
                            <li>
                                    <a href="#">Export</a>
                            </li>
                            <li>
                                    <a href="#">Training</a>
                            </li>
                            <li>
                                    <a href="#">Settings</a>
                            </li>
                    </ul>
                    <ul class="nav navbar-nav navbar-right">
                            <li><a href="#">Logout</a></li>
                    </ul>
            </div>
    </div>


Solution

  • It's there but the parent element doesn't seem to have any width..if you add that the logo appears

    .navbar-brand {
        float: left;
        height: 50px;
        padding: 15px 15px;
        font-size: 18px;
        line-height: 20px;
        width: 50px; /* see here */
    }