JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.1.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.1.0/css/bootstrap.min.css">
<div id="info" style="height: 50px;" class="wo1">Ciao</div>
ehila!<br><br>
ehila!<br><br>
ehila!<br><br>
ehila!<br><br>
ehila!<br><br>
<div id="poketable"></div>
ehila!<br><br>
ehila!<br><br>
ehila!<br><br>
ehila!<br><br>
ehila!<br><br>
ehila!<br><br>
ehila!<br><br>
ehila!<br><br>
ehila!<br><br>
ehila!<br><br>
ehila!<br><br>
ehila!<br><br>
ehila!<br><br>
ehila!<br><br>
ehila!<br><br>
ehila!<br><br>
ehila!<br><br>
ehila!<br><br>
ehila!<br><br>
ehila!<br><br>
ehila!<br><br>
ehila!<br><br>
ehila!<br><br>
ehila!<br><br>
ehila!<br><br>
ehila!<br><br>
ehila!<br><br>
ehila!<br><br>
ehila!<br><br>
CSS
.affix {font-size: 20px !important; color: blue !important; position: fixed; top: 0px; width: 100%;}
.wo1{font-size: 15px; color: black;}
JavaScript
$(function() {
$('#info').affix({
offset: { top: $('#poketable').offset().top }
});
});