Can you relativlely or absolutely position items in a display:table-cell?

后端 未结 3 563
不知归路
不知归路 2021-01-27 07:51

I have a link that I want to always be at the bottom right of the cell it is in. Right now the link is in a < p > element. I tried doing both absolutely and relative position

3条回答
  •  别那么骄傲
    2021-01-27 08:21

    Expanding on Ahsan Rathod's answer to solve this issue in firefox wrap your content inside a div and set your properties on this div rather than the div set as display table-cell

    .cell-div {display:table-cell}
    .relative-div {position:relative; width:100%}
    .absolute-el {position:absolute}
    
    

提交回复
热议问题