Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Skew left side of div that has background image

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #187189
    west4me
    Participant

    I am trying to make a div that has the left side slanted and the div have a background image.
    This example is exactly what I want: JSFiddle
    I have tried and tried to make it work but I just can’t get the left side to skew instead of the right.

    Any assistance would be greatly appreciated.

    #187205
    __
    Participant

    I have tried and tried to make it work but I just can’t get the left side to skew instead of the right.

    What have you tried? Do you understand the syntax for the transform propoerty? Do you understand how this fiddle is making these shapes appear like a parallelogram?

    The overflow: hidden is the key to this illusion. Here’s a version that lets you see what’s going on “behind the scenes” (hover over the shape).

    #297801
    proffnick
    Participant

    Your skews may have worked. The secret there is the negative margins. Go check it very well

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.