Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to align text in bottom of label

I've got problems to get text in the label to the bottom of the label.

I'm animating a falling text, the label does "seem" to fall as it should, but the text stays on top, it's not following the label downwards. Please check this jsfiddle out, press the button to see the problem. I have tried many different ways without coming up with a working solution.

http://jsfiddle.net/kaze72/jQ6Ua/

.uppgifter
{
    vertical-align: text-bottom;
}

Seems not to help!

like image 829
kaze Avatar asked Nov 04 '22 03:11

kaze


1 Answers

You can try

.uppgifter
{
    display: table-cell;
    vertical-align: bottom;
    background-color: yellow;
}

jsFiddle

Updated jsFiddle so that .uppgifter's height in animate method matches #spelplan's height.

like image 192
peterm Avatar answered Nov 09 '22 08:11

peterm