How can I prevent buttons from scrolling with the content? Check out this Fiddle: http://jsfiddle.net/ravi1989/LegZv/1/
$(document).on('click', '.search_h', function() {
$("#searchbar").toggle("slow");
});
I have tried using CSS:
position: relative;
position: fixed;
However, it doesn't seem to be working as expected.
When I place that div inside the header div, the text content appears above the div.:(
On the first click, the button shows up and scrolls with the content.