I tried to dynamically change the position of an element which is defined in CSS with :after. Using this:
:after
$(function(){ $(\'div::after\').c
add CSS:
p.special:before { content: "bar"; position: absolute; top : 10px; }
assuming the style sheet where the code above was put is the first one on the page, use this to change it:
document.styleSheets[0].addRule('p.special:before','top: 15px;');