Skip to content

Commit

Permalink
Merge pull request #103 from jilliankeenan/arrow-css
Browse files Browse the repository at this point in the history
#78 arrow css
  • Loading branch information
ambujraj authored Oct 1, 2018
2 parents 19675d9 + f3bf811 commit be8c7f0
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 24 deletions.
22 changes: 22 additions & 0 deletions css/arrow.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
body {
height: 100%;
width: 100%;
background-color: #333;
color: white;
font-size: 20px;
font-family: 'sans-serif';
}

.h1 {
position: relative;
}

/* -- Arrow -- */

.arrow-1 {
height: 20px;
width: 20px;
border: 3px solid pink;
border-width: 3px 3px 0 0;
transform: rotate(45deg);
}
34 changes: 10 additions & 24 deletions css/arrow.html
Original file line number Diff line number Diff line change
@@ -1,29 +1,15 @@
<!DOCTYPE html>
<html>

<html lang="en">

<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.left{
float: left;
background-color : red;
width : 100px;
height: 20px;
margin-top: 15px;
}
.right{
display : inline-block;
border-left : 25px solid black;
border-top : 25px solid transparent;
border-bottom : 25px solid transparent;
}
</style>
<meta charset="utf-8">
<link rel="stylesheet" href="arrow.css">
</head>
<body>
<h1>Arrow</h1>

<h2>Arrow using CSS</h2>
<div class="left">
</div>
<div class="right">
</div>
<body>
<div class="arrow-1"></div>
</body>
</html>

</html>

0 comments on commit be8c7f0

Please sign in to comment.