Quantcast
Channel: Jquery, not changing css top value - Stack Overflow
Browsing latest articles
Browse All 3 View Live

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 Article


Answer 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 Article


Jquery, 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
Browsing latest articles
Browse All 3 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>