-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #103 from jilliankeenan/arrow-css
#78 arrow css
- Loading branch information
Showing
2 changed files
with
32 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |