Search code examples
cssiconsfont-awesome

How to rotate 180 deg a fontawesome icon?


can any one tell me that how can i rotate a font awesome icon 180 degree. Actually i want to use a truck icon which is directed to right side but i found it left side rotated.

For ex:- <i class="fa fa-truck"></i>

Solution

  • This helped me:

    .fa {
        -webkit-transform: rotate(180deg);
        -moz-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
        -o-transform: rotate(180deg);
        transform: rotate(180deg);
    }