Bottom to top
    element arrangement

前端 未结 3 2058
南旧
南旧 2021-02-19 09:46

I\'m trying to find out how I can force elements to start from the bottom going to the top.

I have searched through stackoverflow and I can\'t seem to get the answer th

3条回答
  •  被撕碎了的回忆
    2021-02-19 10:15

    A css solution fiddle

    ul, ul li {
    -webkit-transform: scaleY(-1);
       -moz-transform: scaleY(-1);
        -ms-transform: scaleY(-1);
         -o-transform: scaleY(-1);
            transform: scaleY(-1);
    
    }
    ul {
        width: 350px;
    }
     li {
        display: inline-block;
        width: 70px;
        zoom: 1;         
        *display: inline;
    }
    

    This works by flipping the entire UL and then each LI on it's Y axis.

提交回复
热议问题