I want to add or subtract the value of 'top' in this css change. Rather then specifying a specific ammount of pixels I would like to add 20px to the current value provided by the external css.
The goal is to make the list move up an down.
$('.up').click(function(){
$('.list').css('top','-20px');
});
the HTML
<div id="container">
<ul class="list">
<li >first item</li>
<li class="active">second item</li>
<li>third item</li>
<li >fourth item</li>
<ul>
</div>
<a href="#" class="up">up</a>
<a href="#" class="up">down</a>