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?
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
Here you go. http://codepen.io/anon/pen/jnGCb
Position: absolute is one way.
That worked! Thank you.