3

I'm using bootstrap to create my buttons, and I want to add a left or right point arrow to some of them but I want to be able to just add a class instead of creating extra markup to add the arrow. I'm currently using ::after and ::before to create the arrow, but I can't make the tip round, neither I can add the border bottom that my button has in order to make it look consistent. here's the codepen

http://codepen.io/mindgrinder/pen/nIfGy

Israel Bautista
  • 119
  • 1
  • 9
  • 2
    If you only want to work with CSS than this is probably your best option, albeit rather messy. http://stackoverflow.com/questions/14446677/how-to-make-3-corner-rounded-triangle-in-css – codedude Dec 16 '13 at 23:21

3 Answers3

0

I'm unsure if this is ideal, but it's a try: http://codepen.io/anon/pen/JFaxK I've used a CSS transform to achieve the effect. The only issue is the :after box is not being placed being the button. Tweaking is needed!

Ahmed Sagarwala
  • 400
  • 2
  • 13
0

Here's the CodePen: http://codepen.io/anon/pen/gawIJ

What I did was quite simple, just 3 lines of CSS code.

margin-left:-20px;
border-radius: 35px 30px 30px 30px;
-webkit-transform:rotate(180deg);

The result

enter image description here

Ali Gajani
  • 14,762
  • 12
  • 59
  • 100
0

so this is what I ended up doing which worked perfectly

http://codepen.io/mindgrinder/pen/nIfGy

Israel Bautista
  • 119
  • 1
  • 9