Grow your CSS skills. Land your dream job.

Active page navigation triangle. help.

  • # May 18, 2013 at 11:57 pm

    How do i add the bottom triangle on the .active :after?

    I know that we need the Content:””; then to position it. but relative? and would that be relative to the parent ? (so the li? or the a?) then the triangle.

    http://jsfiddle.net/attilahajzer/6Sxak/10/

    # May 19, 2013 at 12:01 pm

    @attilahajzer : It’s the `overflow: hidden` on the list-element that keeps the :after elements out of sight. So if you could give the parent list-element of the active link a class, and set it to `overflow: visible` , and change the position on the nav-links to relative, instead of absolute, then it’s getting there. Needs a few more tweaks though: [like in this Codepen](http://codepen.io/atelierbram/pen/mKucl “”).

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".