↧
Answer by Gazler for Jquery, not changing css top value
Pretty sure you don't add the px.$("#scroll").css("top", topVal-10);Should do it.Also, if you are doing what I think you are trying to do (keep scrolling a div on hover) then this thread might be of...
View ArticleAnswer by antpaw for Jquery, not changing css top value
try this $("#up").hover(function(){ $("#scroll").css("top", "-10px"); });this line doesnt make any sens:var topVal = $( 0 +"px");
View ArticleJquery, not changing css top value
So the problem im having is changing my #scroll top:value with the pixel (px) extension.#container { height:100px; overflow:hidden;}#scroll { position:relative; top:0px;}<div...
View Article