Skip to content

Instantly share code, notes, and snippets.

@JamieLottering
Created July 28, 2011 22:56
Show Gist options
  • Select an option

  • Save JamieLottering/1112765 to your computer and use it in GitHub Desktop.

Select an option

Save JamieLottering/1112765 to your computer and use it in GitHub Desktop.

Revisions

  1. JamieLottering revised this gist Jul 28, 2011. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion shape.css
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,6 @@
    position: relative;
    text-align: center;
    width: 250px;
    z-index: 100;
    }
    .ribbon:before {
    background-color: red;
  2. JamieLottering revised this gist Jul 28, 2011. 1 changed file with 21 additions and 21 deletions.
    42 changes: 21 additions & 21 deletions shape.css
    Original file line number Diff line number Diff line change
    @@ -1,21 +1,21 @@
    .ribbon {
    border-color: #cc0000 transparent #cc0000 transparent;
    border-style: solid;
    border-width: 16px;
    color: #fff;
    position: relative;
    text-align: center;
    width: 250px;
    z-index: 100;
    }
    .ribbon:before {
    background-color: red;
    border-top: 5px solid #eee;
    content: "";
    height: 42px;
    left: 0;
    margin: 0 10%;
    position: absolute;
    top: -16px;
    width: 80%;
    }
    .ribbon {
    border-color: #cc0000 transparent #cc0000 transparent;
    border-style: solid;
    border-width: 16px;
    color: #fff;
    position: relative;
    text-align: center;
    width: 250px;
    z-index: 100;
    }
    .ribbon:before {
    background-color: red;
    border-top: 5px solid #eee;
    content: "";
    height: 42px;
    left: 0;
    margin: 0 10%;
    position: absolute;
    top: -16px;
    width: 80%;
    }
  3. JamieLottering created this gist Jul 28, 2011.
    21 changes: 21 additions & 0 deletions shape.css
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    .ribbon {
    border-color: #cc0000 transparent #cc0000 transparent;
    border-style: solid;
    border-width: 16px;
    color: #fff;
    position: relative;
    text-align: center;
    width: 250px;
    z-index: 100;
    }
    .ribbon:before {
    background-color: red;
    border-top: 5px solid #eee;
    content: "";
    height: 42px;
    left: 0;
    margin: 0 10%;
    position: absolute;
    top: -16px;
    width: 80%;
    }
    1 change: 1 addition & 0 deletions shape.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    <div class="ribbon"></div>