Tag: jquery
-
un-fixing the position of the navbar in mobile view on Bootstrap with CSS and jQuery
—
in WorkThe floating navbar on responsive/mobile Bootstrap templates has a fixed position. But when the menu becomes longer, I needed to make it ‘relative’ in position so that the person can scroll down the items to see the other links. jQuery function mobile_header() { /* on mobile, opening the menu scrolls to top and removed the…
-
the zero (or negative) height problem of elements inside an initially hidden container
—
in Workphew, that was a long title. But it took me a while to figure out too. basically, I was working on creating a grid with list elements having the same height. I had done this before on Save22’s older version, and had made a function for it: function same_height(container) { var items_height = []; $(container).each(function()…