When you need a triangle on your web page you had are going to create an image but now you don't need to create the image. CSS3 has made easy to create a triangle with a border using simple CSS code. here are some examples which help you.
CSS triangle with border

CSS Triangles with Borders

Create CSS arrows/triangles using borders.
  • Author Name:
    Adam Laki
  • Code:
    Demo / Code Link
  • Using:
    HTML-CSS
  • Dependencies:
    N/A
  • Browser Compatibility:
    Chrome, Safari, Firefox, Edge
  • Responsive:
    Yes
CSS triangle with border

Simple Guide To CSS Triangle Borders

CSS background color fill box with CSS triangle examples
  • Author Name:
    Holly
  • Code:
    Demo / Code Link
  • Using:
    HTML-CSS
  • Dependencies:
    N/A
  • Browser Compatibility:
    Chrome, Safari, Firefox, Edge
  • Responsive:
    Yes
CSS triangle with border

CSS Triangle with Partial Borders

Example of a CSS triangle that has borders on two sides.
  • Author Name:
    Jared Cornwall
  • Code:
    Demo / Code Link
  • Using:
    HTML-CSS
  • Dependencies:
    N/A
  • Browser Compatibility:
    Chrome, Safari, Firefox, Edge
  • Responsive:
    Yes
CSS triangle with border

Transparent CSS Triangle with Borders

it's cool the way they have created the triangle using CSS.
  • Author Name:
    Mohomed Anees
  • Code:
    Demo / Code Link
  • Using:
    HTML-CSS
  • Dependencies:
    N/A
  • Browser Compatibility:
    Chrome, Safari, Firefox, Edge
  • Responsive:
    Yes
CSS triangle with border

CSS Triangle with border

Using :before and :after pseudo-elements to create a triangle with a "border". Useful for styling progress trackers in forms or breadcrumbs.
  • Author Name:
    hellomynameisizespe
  • Code:
    Demo / Code Link
  • Using:
    HTML-CSS
  • Dependencies:
    N/A
  • Browser Compatibility:
    Chrome, Safari, Firefox, Edge
  • Responsive:
    Yes
CSS triangle with border

Box with triangle arrow

This Box triangle arrow useful for making tooltips or popovers.
  • Author Name:
    lideo
  • Code:
    Demo / Code Link
  • Using:
    HTML-CSS
  • Dependencies:
    N/A
  • Browser Compatibility:
    Chrome, Safari, Firefox, Edge
  • Responsive:
    Yes
CSS triangle with border

Pure CSS triangle arrow

Top, Bottom, Right, Left triangle arrow using pure CSS code.
  • Author Name:
    dipish
  • Code:
    Demo / Code Link
  • Using:
    HTML-CSS
  • Dependencies:
    N/A
  • Browser Compatibility:
    Chrome, Safari, Firefox, Edge
  • Responsive:
    Yes
CSS triangle with border

CSS Triangle Border

Transparent triangle using pure CSS code.
  • Author Name:
    samliew
  • Code:
    Demo / Code Link
  • Using:
    HTML-CSS
  • Dependencies:
    N/A
  • Browser Compatibility:
    Chrome, Safari, Firefox, Edge
  • Responsive:
    Yes
CSS triangle with border

Triangle Bottom Border Example

Full page background triangle arrow using only CSS.
  • Author Name:
    Ivan Bogachev
  • Code:
    Demo / Code Link
  • Using:
    HTML-CSS
  • Dependencies:
    N/A
  • Browser Compatibility:
    Chrome, Safari, Firefox, Edge
  • Responsive:
    Yes
CSS triangle with border

CSS3 Triangle Box-Shadow

CSS3 triangle built using the border-color technique with a proper box-shadow!
  • Author Name:
    Ryan McKay
  • Code:
    Demo / Code Link
  • Using:
    HTML-CSS
  • Dependencies:
    N/A
  • Browser Compatibility:
    Chrome, Safari, Firefox, Edge
  • Responsive:
    Yes
CSS triangle with border

Border radius and triangle

Combination CSS3 border radius and triangle technique.
  • Author Name:
    Wifeo
  • Code:
    Demo / Code Link
  • Using:
    HTML-CSS
  • Dependencies:
    N/A
  • Browser Compatibility:
    Chrome, Safari, Firefox, Edge
  • Responsive:
    Yes