change the height of ui.bootstrap.alert
11,370
You will need to change 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
Related videos on Youtube
Author by
Hanks
Updated on June 04, 2022Comments
-
Hanks almost 2 years
I'm trying to add ui.bootstrap.alert based on this example: https://plnkr.co/edit/?p=preview.
It works okay as following except that it's too big for me.
So I changed the height in CSS and here's the new output
.alert { margin-bottom: 1px; height: 30px; }
But now the sentance is not in the middle of the alert anymore.
How can I properly change the height of the alert? Thanks!
-
Marwelln over 7 yearsChange
line-height
to 30 as well. -
Niles Tanner over 7 yearsplunker link is no good
-
-
Hanks over 7 yearsWorks great! Thanks!