Step1: Make a div tag in between body tag. Then specify it's height, width and background color using CSS.
STEP2:Make its Border and specify any color.
STEP3: Now change the value of height and width of the div tag to zero(0) and hide or remove its background color property.
STEP4: Now change the color property of any alternate pair of border with "transparent".i.e; either left-right or top-botton. In my case i am going with the left and right border.
STEP5: Now hide any one of the remaining border property to get a triangle as your requirement.In this condition , I made to appear the bottom triangle.
No comments:
Post a Comment