Forums

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

Home Forums CSS [Solved] list styling pointed ends

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #188877
    dwjoll
    Participant

    Hi,

    How could I style a list to have pointy/triangle ends with solid background colour?

    http://i61.tinypic.com/15yji1f.png

    Thanks for any help.

    Bests,
    Dan

    #188880
    Paulie_D
    Member

    Easy to do with pseudo-elements and borders.

    http://codepen.io/Paulie-D/pen/ByyqLz

    #188882
    Paulie_D
    Member

    Here’s a neat little option using currentColor which makes everything the same color without having to explicitly set a color to each pseudo element.

    It does require an additional span to “reset” the color to white but that’s a small price to pay for the neatness of the effect and simplicity of the CSS.

    http://codepen.io/Paulie-D/pen/ZYYqyo

    #188894
    dwjoll
    Participant

    Exactly what I wanted! Thanks Paulie :)

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