how to adjust image height on navbar brand?

Hi there

I have an image in the main navbar brand

I want to adjust it to navbar height

this is my code


        'brandLabel' => Html::img('siteImages/theSchoolLogo.jpg', ['alt'=>Yii::$app->name]),

        'brandUrl' => Yii::$app->homeUrl,

        'options' => [

            'class' => 'navbar-default navbar-fixed-top',



how should i do it?

Thanks in advance…

'brandLabel' => Html::img('siteImages/theSchoolLogo.jpg', ['alt'=>Yii::$app->name, 'class' => 'some-class', 'style' => '']),

use css to your brand image to adjust the height and padding, here is small snippet that get you going


        .navbar-brand {

            padding: 3px;


        .navbar-brand img {

            height: 100%;



it doesnt work for me

dont know why

[size="5"]That Worked!!!

Thanks alot~![/size]