Skip to content

Instantly share code, notes, and snippets.

@joemay
Created March 18, 2014 21:48
Show Gist options
  • Save joemay/9630465 to your computer and use it in GitHub Desktop.
Save joemay/9630465 to your computer and use it in GitHub Desktop.
Alignment helper rectangle
$.getScript('http://cdnjs.cloudflare.com/ajax/libs/jquery.pep/0.4.0/jquery.pep.min.js', function() {
var attributes = {
'id': 'com-may-align-helper',
'text': ''
};
var properties = {
'width': 100,
'height': 100,
'display': 'block',
'position': 'absolute',
'background': '#3498DB',
'z-index': 9999,
'top': 0,
'left': 0,
'text-align': 'center'
};
$('<div/>', attributes)
.css(properties)
.appendTo('body')
.pep()
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment