Skip to content

Instantly share code, notes, and snippets.

@brailateo
Created July 17, 2013 09:44
Show Gist options
  • Save brailateo/6019205 to your computer and use it in GitHub Desktop.
Save brailateo/6019205 to your computer and use it in GitHub Desktop.
Asta produce adăugarea la runtime a noi reguli de CSS
$("<style>")
.prop("type", "text/css")
.html("\
#my-window {\
position: fixed;\
z-index: 102;\
display:none;\
top:50%;\
left:50%;\
}")
.appendTo("head");
// Noticed the back slashes? They are used to join strings that are on new lines
// Leaving them out generates an error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment