How to enlarge a div without moving other elements

后端 未结 2 1176
离开以前
离开以前 2021-01-20 19:39

How can I stop this div to move all elements below where you select certain price?

To see what I am talking about please look at this link: Check the price table sty

2条回答
  •  青春惊慌失措
    2021-01-20 20:28

    You can also consider using the CSS transform property, a technique that is also used in your fourth table. For example:

    .some_table .some-table-column:hover {
        -webkit-transform: scale(1.1);
        -moz-transform: scale(1.1);
        -ms-transform: scale(1.1);
        -o-transform: scale(1.1);
    }
    

    CSS transforms are ideal for this, as they "allow to change the position of the affected content without disrupting the normal flow".

提交回复
热议问题