XF 2.0 Trying to skew button, but keep text inside normal

Matt C.

Well-known member
I'm trying to skew the buttons, but keep the text inside normal.

I'm using this:
Code:
.button
{
    -webkit-transform: skew(-0.25rad);
    -ms-transform: skew(-0.25rad);
    transform: skew(-0.25rad);
    -webkit-transform: skew(-0.25rad) perspective(1px) translate3d(0, 0, 0);
    transform: skew(-0.25rad) perspective(1px) translate3d(0, 0, 0);
   
    .button-text
    {
        -webkit-transform: skew(0.25rad);
        -ms-transform: skew(0.25rad);
        transform: skew(0.25rad);
    }
}

This should work, but it isn't.

191841

If anyone has any ideas, thank you.

Edit: You have to apply display: inline-block to the .button-text.
 
Last edited:
CSS look fine for me and working fine -
CSS:
.button
{
    -webkit-transform: skew(-0.25rad);
    -ms-transform: skew(-0.25rad);
    transform: skew(-0.25rad);
    -webkit-transform: skew(-0.25rad) perspective(1px) translate3d(0, 0, 0);
    transform: skew(-0.25rad) perspective(1px) translate3d(0, 0, 0);
    
}
    .button-text
    {
     -webkit-transform: skew(0.25rad);
        -ms-transform: skew(0.25rad);
        transform: skew(0.25rad);
}
191842
 
Back
Top Bottom