Change height ui.bootstrap.alert

I am trying to add ui.bootstrap.alert based on this example: https://plnkr.co/edit/?p=preview .

It works fine, except that it is too big for me. enter image description here

So I changed the height in CSS and here is the new output

.alert { margin-bottom: 1px; height: 30px; } 

enter image description here But now the message is no longer in the middle of the alert.

How to change the height of the notification? Thanks!

+5
source share
1 answer

You will need to change the line-height and padding for this to work

 .alert { margin-bottom: 1px; height: 30px; line-height:30px; padding:0px 15px; } 

http://codepen.io/nilestanner/pen/kkGoNO

+14
source

Source: https://habr.com/ru/post/1257593/


All Articles