Forums

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

Home Forums CSS :after relative to content not div?

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #40822
    grinfax
    Member

    So I am trying to have a skewed edge on a div. I was disappointed to find out that the :after selector is relative to the content and not to the element itself. Unless I am doing something wrong. Am I?

    Here is the test :
    http://jsfiddle.net/ybWwR/

    Any ideas how to solve this problem?

    -Kim

    #114428
    Paulie_D
    Member

    Here you go. http://codepen.io/anon/pen/jnGCb

    Position: absolute is one way.

    #114454
    grinfax
    Member

    That worked! Thank you.

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