"ribbons"
Bootstrap 3.3.0 Snippet by Siraj

1
2
3
4
5
6
7
8
9
10
11
12
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="corner-ribbon top-left sticky red shadow">Hello</div>
<div class="corner-ribbon top-right sticky blue">Hello</div>
<div class="corner-ribbon bottom-left sticky orange">Hello</div>
<div class="corner-ribbon bottom-right sticky green shadow">Hello</div>
<h1>Corner Ribbons</h1>
<h2>(with custom settings and all...)</h2>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
@import url('https://fonts.googleapis.com/css?family=Noto+Sans:400,700');
*{
margin: 0;
padding: 0;
}
body{
background: #f0f0f0;
font-family: 'Noto Sans', sans-serif;
}
h1{
width: 500px;
height: 100px;
position: fixed;
top: 50%;
left: 50%;
margin: -100px 0 0 -275px;
font-size: 3.2em;
font-weight: 700;
text-align: center;
text-transform: uppercase;
line-height: 100px;
color: #aaa;
}
h2{
width: 500px;
height: 100px;
position: fixed;
top: 50%;
left: 50%;
margin: 0 0 0 -225px;
font-size: 1.6em;
font-weight: 400;
text-align: center;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: