CSS rotate moves DIV from side of page

后端 未结 3 1079
慢半拍i
慢半拍i 2021-01-21 05:51

I\'m trying to create a side tag, as found here in it basic form. http://www.firstforturf.co.uk/quotation.php

I\'m trying to do as much of it as possible using CSS rathe

相关标签:
3条回答
  • 2021-01-21 06:31

    Use transform-origin:

    -moz-transform-origin: 20px;
    -ms-transform-origin: 20px;
    -o-transform-origin: 20px;
    -webkit-transform-origin: 20px;
    transform-origin: 20px;
    
    0 讨论(0)
  • 2021-01-21 06:36

    Take a look at -webkit-transform-origin. As your element is fixed, you may need to amend the transform origin accordingly.

    0 讨论(0)
  • 2021-01-21 06:43

    You can use transform-orign:

    transform: rotate(45deg);
    transform-origin:20% 40%;
    -ms-transform: rotate(45deg); /* IE 9 */
    -ms-transform-origin:20% 40%; /* IE 9 */
    -webkit-transform: rotate(45deg); /* Safari and Chrome */
    -webkit-transform-origin:20% 40%; /* Safari and Chrome */
    -moz-transform: rotate(45deg); /* Firefox */
    -moz-transform-origin:20% 40%; /* Firefox */
    -o-transform: rotate(45deg); /* Opera */
    -o-transform-origin:20% 40%; /* Opera */
    

    try this link

    0 讨论(0)
提交回复
热议问题