Is it possible to create a button pointing down (image included) with CSS only?

I would like to create this using only CSS. Is it possible? If so, can you guys help me?

enter image description here

+5
source share
3 answers

Pretty easy with borders and pseudo-element:

<a href="#" id="button">ALL</a>

#button::after {
    content: "";
    border: 64px solid transparent;
    border-top: 12px solid orange;
    position: absolute;
    top: 29px;
    left: 0;
}

Demo

+5
source

Try experimenting with this basic button:

.btn {
    width: 100px;
    height: 30px;
    text-align: center;
    border: 0;
}
.btn-arrow {
    position: relative;
    background: coral;
}
.btn-arrow:after {
    border: solid transparent;
    content:"";
    position: absolute;
    border-top-color: coral;
    border-width: 16px 50px;
    left: 0px;
    top: 100%;
    margin-top: 0px;
}

http://jsfiddle.net/dfsq/tNjCb/1/

+3
source

what about the following:

http://jsfiddle.net/WDCu3/

<div id="test">Testing</div>
<div id="arrow"></div>

#test {background-color:red; width:100px;}
div {text-align:center;}

#arrow {
    border-top: 15px solid red;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    height: 0;
    width:0;
}
+2
source

All Articles