Applying styles to :before and :after elements

Applying styles to :before and :after elements

This seems like something that should be fairly trivial:

$('.foo:before').css('margin-top', '50px');

But currently does not work.

There's no reason this coulnd't be implemented in this way:

1) Create a stylesheet on the page
2) Add a style for .foo:before and use the css rules provided