-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
38 lines (38 loc) · 1.04 KB
/
index.html
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
38
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Element Positioning</title>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
div {
height: 500px;
width: 100%;
margin: 0;
padding: 0;
background-color: #BFBFBF;
}
a {
display: inline-block;
background-color: #DADFE1;
color: #333;
padding: 5px;
text-decoration: none;
margin: 0;
width: 200px;
text-align: center;
border: solid 1px #900;
}
</style>
</head>
<body>
<div class="container"><a href="https://github.com/teddynted/ElementPositioning" target="_blank" id="elem">Position this element</a></div>
<script type="text/javascript" src="build/js/jquery.min.js"></script>
<script type="text/javascript" src="build/js/elementpositioning.js"></script>
<script>
$("#elem").positionElement({ alignment: 'middle-center' }); // Default element's position
</script>
</body>
</html>